Skip to content

Commit

Permalink
codecov step (#4)
Browse files Browse the repository at this point in the history
* codecov step

* fix engine coverage files
  • Loading branch information
KSpaceer authored Sep 23, 2023
1 parent f7fc794 commit 782759c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/yamly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ jobs:
run: find ./engines -type f -name go.mod -execdir go build -v ./... \;

- name: Test
run: go test -race -v ./...
run: go test -race -covermode=atomic -coverprofile=yamly-coverage.out -v ./...

- name: Test engines
run: find ./engines -type f -name go.mod -execdir go test -race -v ./... \;
run: find ./engines -type f -name go.mod -execdir go test -covermode=atomic -coverprofile=engine-coverage.out -race -v ./... \;

- name: Test integration
run: cd ./test && go test -race -v ./...

- name: Upload coverage
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
lint:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 782759c

Please sign in to comment.