Skip to content

Commit

Permalink
chore: fix upload code cov
Browse files Browse the repository at this point in the history
Signed-off-by: Firas Qutishat <[email protected]>
  • Loading branch information
fqutishat committed Apr 1, 2022
1 parent b6039e8 commit b2886b6
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,32 @@ jobs:
run: |
make checks
UnitTest:
runs-on: ubuntu-latest
timeout-minutes: 30
unitTest:
name: Unit test
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Go
- name: Setup Go 1.17
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: 1.17
id: go

- uses: actions/checkout@v2

- name: Run unit test
timeout-minutes: 15
run: make unit-test

- name: Upload coverage to Codecov
run: |
bash <(curl https://codecov.io/bash)
env:
CODECOV_UPLOAD_TOKEN: ${{ secrets.CODECOV_UPLOAD_TOKEN }}
timeout-minutes: 10
if: matrix.os == 'ubuntu-latest' && github.repository == 'trustbloc/sidetree-core-go'
uses: codecov/[email protected]
with:
file: ./coverage.out

sonarcloud:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b2886b6

Please sign in to comment.