Skip to content

Commit

Permalink
fix: increase codecov upload attempt
Browse files Browse the repository at this point in the history
try to avoid `Unable to locate build via Github Actions API` by increasing
codecov upload attempt
based on this issue:
https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954

Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Oct 2, 2023
1 parent 28455d8 commit 54c5e69
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 20 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/gnoland.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,18 @@ jobs:
export GOTEST_FLAGS="-v -p 1 -timeout=30m -coverprofile=coverage.out -covermode=atomic"
make ${{ matrix.args }}
- if: ${{ runner.os == 'Linux' && matrix.goversion == '1.21.x' }}
uses: codecov/codecov-action@v3
name: Upload coverage to Codecov.io
uses: Wandalen/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: gno.land
flags: gno.land-${{matrix.args}}
files: ./gno.land/coverage.out
fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}
attempt_limit: 3
attempt_delay: 30000
action: codecov/codecov-action@v3
with: |
token: ${{ secrets.CODECOV_TOKEN }}
name: gno.land
flags: gno.land-${{matrix.args}}
files: ./gno.land/coverage.out
fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}
docker-integration:
strategy:
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/gnovm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,16 @@ jobs:
export GOTEST_FLAGS="-v -p 1 -timeout=30m -coverprofile=coverage.out -covermode=atomic"
make ${{ matrix.args }}
- if: ${{ runner.os == 'Linux' && matrix.goversion == '1.21.x' }}
uses: codecov/codecov-action@v3
name: Upload coverage to Codecov.io
uses: Wandalen/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: gnovm
verbose: true
flags: gnovm-${{matrix.args}}
files: ./gnovm/coverage.out
fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}
attempt_limit: 3
attempt_delay: 30000
action: codecov/codecov-action@v3
with: |
token: ${{ secrets.CODECOV_TOKEN }}
name: gnovm
verbose: true
flags: gnovm-${{matrix.args}}
files: ./gnovm/coverage.out
fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}
19 changes: 12 additions & 7 deletions .github/workflows/tm2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,16 @@ jobs:
make ${{ matrix.args }}
touch coverage.out
- if: ${{ runner.os == 'Linux' && matrix.goversion == '1.21.x' }}
uses: codecov/codecov-action@v3
name: Upload coverage to Codecov.io
uses: Wandalen/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: tm2
verbose: true
flags: tm2-${{matrix.args}}
files: ./tm2/coverage.out
fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}
attempt_limit: 3
attempt_delay: 30000
action: codecov/codecov-action@v3
with: |
token: ${{ secrets.CODECOV_TOKEN }}
name: tm2
verbose: true
flags: tm2-${{matrix.args}}
files: ./tm2/coverage.out
fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}

0 comments on commit 54c5e69

Please sign in to comment.