CI: Upload test result reports on PRs as well as pushes to protected branches (#105431)
Always upload test result report
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user