Skip to content

Commit

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

0 comments on commit 4f859bf

Please sign in to comment.