CI: Upload test result reports on PRs as well as pushes to protected branches (#105431)

Always upload test result report
pull/103055/merge
Kevin Minehart 5 days ago committed by GitHub
parent 3175a04f45
commit 06e8b5a2f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      .github/workflows/backend-unit-tests.yml

@ -99,17 +99,17 @@ jobs:
readarray -t PACKAGES <<< "$(./scripts/ci/backend-tests/shard.sh -N"$SHARD")"
go test -short -v -timeout=30m "${PACKAGES[@]}" | tee >(go-junit-report -set-exit-code > "$RESULTS_FILE")
- name: Log in to GCS
if: github.event_name == 'push' && github.repository == 'grafana/grafana' && (success() || failure())
if: github.repository == 'grafana/grafana' && (success() || failure())
uses: grafana/shared-workflows/actions/login-to-gcs@login-to-gcs-v0.2.0
with:
service_account: github-junit-uploader@grafanalabs-workload-identity.iam.gserviceaccount.com
bucket: grafana-test-results
- if: github.event_name == 'push' && github.repository == 'grafana/grafana' && (success() || failure())
- if: github.repository == 'grafana/grafana' && (success() || failure())
run: echo "BUCKET_PATH=go-unit-tests/$(echo ${REF_NAME} | sed 's/\//-/g')" >> "$GITHUB_ENV"
env:
REF_NAME: ${{ github.ref_name }}
- name: Upload test results
if: github.event_name == 'push' && github.repository == 'grafana/grafana' && (success() || failure())
if: github.repository == 'grafana/grafana' && (success() || failure())
uses: grafana/shared-workflows/actions/push-to-gcs@push-to-gcs-v0.2.0
with:
bucket: grafana-test-results

Loading…
Cancel
Save