Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawi committed Jul 10, 2023
1 parent ece2995 commit df4293f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
go-build-tags: ${{ needs.setup.outputs.go-build-tags }}
runs-on: ${{ needs.setup.outputs.compute-huge }}
enterprise: ${{ needs.setup.outputs.enterprise }}
name: "-race"
name: "race"
secrets: inherit
test-go-fips:
name: Run Go tests with FIPS configuration
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
go-build-tags: '${{ needs.setup.outputs.go-build-tags }},deadlock,cgo,fips,fips_140_2'
runs-on: ${{ needs.setup.outputs.compute-larger }}
enterprise: ${{ needs.setup.outputs.enterprise }}
name: "-fips"
name: "fips"
secrets: inherit
test-ui:
name: Test UI
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ jobs:
go run gotest.tools/gotestsum --format=short-verbose \
--junitfile test-results/go-test/results-${{ matrix.runner-index }}.xml \
--jsonfile test-results/go-test/results-${{ matrix.runner-index }}.json \
--jsonfile-timing-events failure-summary-${{ matrix.runner-index }}${{inputs.name}}.json \
--jsonfile-timing-events failure-summary-${{ matrix.runner-index }}-${{inputs.name}}.json \
-- \
-tags "${{ inputs.go-build-tags }}" \
-timeout=${{ env.TIMEOUT_IN_MINUTES }}m \
Expand All @@ -257,12 +257,18 @@ jobs:
- name: Archive test results
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: test-results${{ inputs.name }}
name: test-results-${{ inputs.name }}
path: test-results/
if: success() || failure()
- name: Prepare failure summary
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: success() || failure()
run: |
jq -r -n 'inputs | select(.Action == "fail") | "| \(.Package) | \(.Test // "-") | \(.Elapsed) | | [see logs](${{server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}/jobs/${{github.job}}) |"' failure-summary-${{ matrix.runner-index }}-${{inputs.name}}.json
jq -r -n 'inputs | select(.Action == "fail") | "| \(.Package) | \(.Test // "-") | ${{inputs.name}} | \(.Elapsed) | ${{ matrix.runner-index }} | [see logs](${{server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}/jobs/${{github.job}}) |"' failure-summary-${{ matrix.runner-index }}-${{inputs.name}}.json
- name: Upload failure summary
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: success() || failure()
with:
name: failure-summary
path: failure-summary-${{ matrix.runner-index }}${{inputs.name}}.json
path: failure-summary-${{ matrix.runner-index }}-${{inputs.name}}.json

0 comments on commit df4293f

Please sign in to comment.