Skip to content

Commit

Permalink
ci: adjust finish-coverage-report job condition for strict workflow c…
Browse files Browse the repository at this point in the history
…ontrol

Signed-off-by: Marko Kungla <[email protected]>
  • Loading branch information
mkungla committed Jan 29, 2024
1 parent b48b1a6 commit 3447afc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..
}
}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/monorepo-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3447afc

Please sign in to comment.