mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 00:33:28 -04:00
Group CI artifacts per test type to reduce noise on GHA run summary page (#21648)
This commit is contained in:
parent
a2de4c75cd
commit
95b44add74
1 changed files with 5 additions and 5 deletions
10
.github/workflows/test-go.yml
vendored
10
.github/workflows/test-go.yml
vendored
|
|
@ -228,8 +228,8 @@ jobs:
|
|||
# shellcheck disable=SC2086 # can't quote package list
|
||||
GOARCH=${{ inputs.go-arch }} \
|
||||
go run gotest.tools/gotestsum --format=short-verbose \
|
||||
--junitfile test-results/go-test/results.xml \
|
||||
--jsonfile test-results/go-test/results.json \
|
||||
--junitfile test-results/go-test/results-${{ matrix.runner-index }}.xml \
|
||||
--jsonfile test-results/go-test/results-${{ matrix.runner-index }}.json \
|
||||
-- \
|
||||
-tags "${{ inputs.go-build-tags }}" \
|
||||
-timeout=${{ env.TIMEOUT_IN_MINUTES }}m \
|
||||
|
|
@ -251,17 +251,17 @@ jobs:
|
|||
if [[ ${{ github.repository }} == 'hashicorp/vault' ]]; then
|
||||
export DATADOG_API_KEY=${{ secrets.DATADOG_API_KEY }}
|
||||
fi
|
||||
datadog-ci junit upload --service "$GITHUB_REPOSITORY" test-results/go-test/results.xml
|
||||
datadog-ci junit upload --service "$GITHUB_REPOSITORY" test-results/go-test/results-${{ matrix.runner-index }}.xml
|
||||
if: success() || failure()
|
||||
- name: Archive test results
|
||||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||
with:
|
||||
name: test-results${{ inputs.name }}-${{ matrix.runner-index }}
|
||||
name: test-results${{ inputs.name }}
|
||||
path: test-results/
|
||||
if: success() || failure()
|
||||
- name: Create a summary of tests
|
||||
uses: test-summary/action@62bc5c68de2a6a0d02039763b8c754569df99e3f # TSCCR: no entry for repository "test-summary/action"
|
||||
with:
|
||||
paths: "test-results/go-test/results.xml"
|
||||
paths: "test-results/go-test/results-${{ matrix.runner-index }}.xml"
|
||||
show: "fail"
|
||||
if: success() || failure()
|
||||
|
|
|
|||
Loading…
Reference in a new issue