diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index 8363133..1fdb5bd 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -42,14 +42,14 @@ 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 - # - name: Upload coverage report - # if: ${{ !env.ACT && github.event_name == 'pull_request' }} - # uses: actions/upload-artifact@v4 - # with: - # name: coverage-report-backend - # path: backend/coverage.html + - name: Generate coverage report + run: cd backend && go tool cover -html=coverage.out -o coverage.html + - name: Upload coverage report + if: ${{ !env.ACT && github.event_name == 'pull_request' }} + uses: actions/upload-artifact@v4 + with: + name: coverage-report-backend + path: backend/coverage.html - name: Comment PR if: ${{ !env.ACT && github.event_name == 'pull_request' && always() }} uses: actions/github-script@v7