Skip to content

Commit

Permalink
move the coverage to html to test step
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed Nov 26, 2024
1 parent 043e3f5 commit 1252ba6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ jobs:
# run tests and capture output
cd backend
go test -v -coverprofile=coverage.out ./...
- name: Generate coverage report
run: cd backend && go tool cover -html=coverage.out -o coverage.html
go tool cover -html=coverage.out -o coverage.html
- name: Upload coverage report
if: ${{ !env.ACT && github.event_name == 'pull_request' }}
if: ${{ !env.ACT && github.event_name == 'pull_request' && always() }}
uses: actions/upload-artifact@v4
with:
name: coverage-report-backend
Expand Down

0 comments on commit 1252ba6

Please sign in to comment.