Skip to content

Fix untrusted rosa e2e skip for daemonset feature branch (#827) #78

Fix untrusted rosa e2e skip for daemonset feature branch (#827)

Fix untrusted rosa e2e skip for daemonset feature branch (#827) #78

name: "E2E Tests (Trusted)"
on:
push:
branches: [ "main", "release-**", "workflow/**" ]
merge_group:
types: [ "checks_requested" ]
pull_request:
permissions:
id-token: write
contents: read
jobs:
e2e:
name: E2E Tests
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.id == github.event.pull_request.base.repo.id }}
uses: ./.github/workflows/e2e-tests.yaml
with:
environment: "trusted"
ref: ${{ (github.event_name == 'push' && github.sha) || (github.event_name == 'pull_request' && github.event.pull_request.head.sha) || github.event.merge_group.head_sha }}
secrets: inherit
e2e-rosa:
name: E2E ROSA Tests
# Temporarily skipping rosa tests for feature/daemonset-architecture branch
if: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.id == github.event.pull_request.base.repo.id) && github.base_ref != 'feature/daemonset-architecture' }}
uses: ./.github/workflows/e2e-rosa-tests.yaml
with:
environment: "rosa-trusted"
ref: ${{ (github.event_name == 'push' && github.sha) || (github.event_name == 'pull_request' && github.event.pull_request.head.sha) || github.event.merge_group.head_sha }}
secrets: inherit
outcome:
name: All E2E Tests Passed
if: ${{ always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.id == github.event.pull_request.base.repo.id) }}
runs-on: ubuntu-latest
needs:
- e2e
- e2e-rosa
steps:
- name: Verify jobs succeeded
run: |
if [[ "${{ github.base_ref }}" == "feature/daemonset-architecture" ]]; then
echo '${{ toJSON(needs) }}' | jq -e 'to_entries | all(.value.result == "success" or .value.result == "skipped")'
else
echo '${{ toJSON(needs) }}' | jq -e 'to_entries | all(.value.result == "success")'
fi