From fb2ce4eef46730b4cf6b0453a8016eba74ce887e Mon Sep 17 00:00:00 2001 From: Laurent Egbakou <26142591+egbakou@users.noreply.github.com> Date: Sun, 17 Dec 2023 23:40:06 +0100 Subject: [PATCH 1/3] chore(ci-core): revert back matrix usage as it create conflict between containers --- .github/workflows/ci-core.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-core.yml b/.github/workflows/ci-core.yml index d3bef63..27b58fb 100644 --- a/.github/workflows/ci-core.yml +++ b/.github/workflows/ci-core.yml @@ -48,14 +48,11 @@ jobs: name: Tests runs-on: ubuntu-latest timeout-minutes: 10 - strategy: - matrix: - framework: [ 'net8.0', 'net7.0', 'net6.0' ] steps: - name: Check out code uses: actions/checkout@v3 - - name: Install .NET Core SDK + - name: Install .NET SDK uses: actions/setup-dotnet@v3 with: dotnet-version: | @@ -64,13 +61,13 @@ jobs: 6.0.x - name: Run tests - run: dotnet test -c Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage/${{ matrix.framework }} + run: dotnet test -c Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage working-directory: ./tests/DomainVerifier.Tests - name: Code Coverage Report uses: irongut/CodeCoverageSummary@v1.3.0 with: - filename: tests/DomainVerifier.Tests/coverage/${{ matrix.framework }}/coverage.cobertura.xml + filename: tests/DomainVerifier.Tests/coverage/**/coverage.cobertura.xml badge: true fail_below_min: true format: markdown From 33b26a78ee567038f96b1794a14afc2905294c37 Mon Sep 17 00:00:00 2001 From: Laurent Egbakou <26142591+egbakou@users.noreply.github.com> Date: Sun, 17 Dec 2023 23:41:18 +0100 Subject: [PATCH 2/3] chore(ci-extensions): added ci workflow --- .github/workflows/ci-extensions.yml | 81 +++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 .github/workflows/ci-extensions.yml diff --git a/.github/workflows/ci-extensions.yml b/.github/workflows/ci-extensions.yml new file mode 100644 index 0000000..bb7048d --- /dev/null +++ b/.github/workflows/ci-extensions.yml @@ -0,0 +1,81 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: DomainVerifier.Extensions CI + +on: + push: + branches: [ "main" ] + paths: + - 'DomainVerier.sln' + - 'src/DomainVerifier.Extensions/**' + - 'tests/DomainVerifier.Extensions.Tests/**' + - '**/ci-extensions.yml' + pull_request: + branches: [ "main" ] + paths: + - 'DomainVerier.sln' + - 'src/DomainVerifier.Extensions/**' + - 'tests/DomainVerifier.Extensions.Tests/**' + - '**/ci-extensions.yml' + workflow_dispatch: + +jobs: + compile: + name: Build + runs-on: ubuntu-latest + timeout-minutes: 10 + strategy: + matrix: + dotnet-version: [ '8.0.x', '7.0.x', '6.0.x' ] + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: Install .NET SDK 8.0.x + uses: actions/setup-dotnet@v3 + with: + dotnet-version: ${{ matrix.dotnet-version }} + + - name: Restore dependencies + run: dotnet restore + working-directory: ./src/DomainVerifier.Extensions + + - name: Restore NuGet packages + run: dotnet build -c Release --no-restore + working-directory: ./src/DomainVerifier.Extensions + + + test-containers: + needs: compile + name: Tests + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: Install .NET SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 8.0.x + 7.0.x + 6.0.x + + - name: Run tests + run: dotnet test -c Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage + working-directory: ./tests/DomainVerifier.Extensions.Tests + + - name: Code Coverage Report + uses: irongut/CodeCoverageSummary@v1.3.0 + with: + filename: tests/DomainVerifier.Extensions.Tests/coverage/**/coverage.cobertura.xml + badge: true + fail_below_min: true + format: markdown + hide_branch_rate: false + hide_complexity: true + indicators: true + output: both + thresholds: '90 100' From b780d7c7a1fc432e42c9bffba16bf39a581bbf2c Mon Sep 17 00:00:00 2001 From: Laurent Egbakou <26142591+egbakou@users.noreply.github.com> Date: Sun, 17 Dec 2023 23:46:04 +0100 Subject: [PATCH 3/3] chore(ci-extensions): removed coverage from --- .github/workflows/ci-extensions.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/ci-extensions.yml b/.github/workflows/ci-extensions.yml index bb7048d..1ce8c9f 100644 --- a/.github/workflows/ci-extensions.yml +++ b/.github/workflows/ci-extensions.yml @@ -64,18 +64,5 @@ jobs: 6.0.x - name: Run tests - run: dotnet test -c Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage + run: dotnet test -c Release --verbosity normal working-directory: ./tests/DomainVerifier.Extensions.Tests - - - name: Code Coverage Report - uses: irongut/CodeCoverageSummary@v1.3.0 - with: - filename: tests/DomainVerifier.Extensions.Tests/coverage/**/coverage.cobertura.xml - badge: true - fail_below_min: true - format: markdown - hide_branch_rate: false - hide_complexity: true - indicators: true - output: both - thresholds: '90 100'