Skip to content

Commit

Permalink
feat: saving unit test logs as job artifact (Checkmarx#4128)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriopeixotocx authored Aug 30, 2021
1 parent b3d3c8c commit c4d3904
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/go-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,14 @@ jobs:
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
run: |
echo "::group::Unit Tests"
go test -mod=vendor -v $(go list ./... | grep -v e2e) -count=1 -coverprofile=cover.out
go test -mod=vendor -v $(go list ./... | grep -v e2e) -count=1 -coverprofile=cover.out | tee unit-test.log
echo "::endgroup::"
- name: Archive test logs
if: always()
uses: actions/upload-artifact@v2
with:
name: unit-test-${{ runner.os }}-${{ github.event.pull_request.head.sha }}.log
path: unit-test.log
security-scan:
name: security-scan
needs: pre_job
Expand Down

0 comments on commit c4d3904

Please sign in to comment.