Skip to content

Commit

Permalink
set pipeline code
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed Nov 26, 2024
1 parent e167518 commit 2292291
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
# run tests and capture output
cd backend
go test -v -coverprofile=coverage.out ./... 2>&1 | tee test_output.txt
# store the exit code explicitly
echo "::set-output name=exit_code::${PIPESTATUS[0]}"
- name: Generate coverage report
run: cd backend && go tool cover -html=coverage.out -o coverage.html
- name: Upload coverage report
Expand Down

0 comments on commit 2292291

Please sign in to comment.