From cc33d8a873f4e4d595d450ad808dbf1789e57c8e Mon Sep 17 00:00:00 2001 From: "Guilherme Cota [1190640]" <1190640@isep.ipp.pt> Date: Mon, 19 Oct 2026 11:20:04 +0100 Subject: [PATCH] feat(workflow)-add a new github action to build and run tests for codereviewer Updated CI workflow to use .NET 8 and fixed branch references. --- .github/workflows/CI-Build.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/CI-Build.yml diff --git a/.github/workflows/CI-Build.yml b/.github/workflows/CI-Build.yml new file mode 100644 index 0000000..86cad30 --- /dev/null +++ b/.github/workflows/CI-Build.yml @@ -0,0 +1,36 @@ +name: CI-Build + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: cmf-codereview + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Set up .NET 8 + uses: actions/setup-dotnet@v6 + with: + dotnet-version: '8.0.x' + + - name: Restore dependencies of cmf-codereviewer + run: dotnet restore cmf-codereview.sln + + - name: Build cmf-codereviewer + run: dotnet build cmf-codereview.sln --configuration Release --no-restore + + - name: Run tests on cmf-codereviewer + run: dotnet test cmf-codereview.sln --configuration Release --no-build