diff options
author | devonh <devon.dmytro@gmail.com> | 2022-11-16 22:02:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 22:02:25 +0000 |
commit | df76a172344facfa2d03a910fc4d5b1a7b02dd20 (patch) | |
tree | 46a848ff0482f71247ef29bcfd05c7f6366b9c7b /.github | |
parent | 163dabc498a2b45e9b3f8fee6e24114247192bfa (diff) |
Add test code coverage reporting (#2871)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/schedules.yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/schedules.yaml b/.github/workflows/schedules.yaml index c0791724..e304c2a5 100644 --- a/.github/workflows/schedules.yaml +++ b/.github/workflows/schedules.yaml @@ -53,12 +53,14 @@ jobs: key: ${{ runner.os }}-go${{ matrix.go }}-test-race-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go${{ matrix.go }}-test-race- - - run: go test -race ./... + - run: go test -race -json -v -coverpkg=./... -coverprofile=cover.out $(go list ./... | grep -v /cmd/dendrite*) 2>&1 | gotestfmt env: POSTGRES_HOST: localhost POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: dendrite + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 # Dummy step to gate other tests on without repeating the whole list initial-tests-done: |