From 3447afc1d65dd50983b0fc416c3f33bbfe6beb5d Mon Sep 17 00:00:00 2001 From: Marko Kungla Date: Tue, 30 Jan 2024 00:40:33 +0200 Subject: [PATCH] ci: adjust finish-coverage-report job condition for strict workflow control Signed-off-by: Marko Kungla --- .../go-test-monorepo-action.ps1 | 2 +- .github/workflows/monorepo-main.yml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/actions/go-test-monorepo-action/go-test-monorepo-action.ps1 b/.github/actions/go-test-monorepo-action/go-test-monorepo-action.ps1 index 74af270..5706e94 100755 --- a/.github/actions/go-test-monorepo-action/go-test-monorepo-action.ps1 +++ b/.github/actions/go-test-monorepo-action/go-test-monorepo-action.ps1 @@ -13,7 +13,7 @@ Get-ChildItem -File -Recurse -Filter "go.mod" | ForEach-Object { if ($ONLY_MODULE_LIST -ne "true") { Write-Host "Testing and generating coverage for module: $module" Set-Location $module - go test -coverpkg=./... -coverprofile=coverage.out -timeout=1m ./... + go test -race -coverpkg=./... -coverprofile=coverage.out -timeout=1m ./... Set-Location .. } } diff --git a/.github/workflows/monorepo-main.yml b/.github/workflows/monorepo-main.yml index 27c5a26..a9ab8a1 100644 --- a/.github/workflows/monorepo-main.yml +++ b/.github/workflows/monorepo-main.yml @@ -94,12 +94,12 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} file: ${{ matrix.module }}/coverage.out - finish-coverage-report: - needs: coverage - if: github.event.inputs.strict == 'false' || success() - runs-on: ubuntu-latest - steps: - - name: Coveralls Finish - uses: coverallsapp/github-action@v2 - with: - parallel-finished: true + finish-coverage-report: + needs: coverage + if: github.event.inputs.strict == 'false' || success() + runs-on: ubuntu-latest + steps: + - name: Coveralls Finish + uses: coverallsapp/github-action@v2 + with: + parallel-finished: true