Skip to content

Commit

Permalink
chore: Trigger all-checks-passed after e2e tests (#1531)
Browse files Browse the repository at this point in the history
Co-authored-by: Hisar Balik <[email protected]>
  • Loading branch information
k15r and hisarbalik authored Oct 22, 2024
1 parent ae17e61 commit f9705aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pr-all-checks-passed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
labeled,
milestoned,
]
workflow_run:
workflows: ["PR Integration"]
types:
- completed

jobs:
all-checks:
runs-on: ubuntu-latest
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/pr-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
- 'external-images.yaml'
workflow_dispatch:


jobs:
e2e:
strategy:
Expand All @@ -42,7 +43,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run tests
run: bin/ginkgo run --junit-report=junit-report.xml --tags e2e --label-filter="${{ matrix.ginkgo-labels }} && !experimental" test/e2e
run: bin/ginkgo run ${{ runner.debug && '-v' || '' }} --tags e2e --label-filter="${{ matrix.ginkgo-labels }} && !experimental" test/e2e

- name: Finalize test
uses: "./.github/template/finalize-test"
Expand Down Expand Up @@ -70,7 +71,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run tests
run: bin/ginkgo run --junit-report=junit-report.xml --tags e2e --label-filter="${{ matrix.ginkgo-labels }} && experimental" test/e2e
run: bin/ginkgo run ${{ runner.debug && '-v' || '' }} --tags e2e --label-filter="${{ matrix.ginkgo-labels }} && experimental" test/e2e

- name: Finalize test
uses: "./.github/template/finalize-test"
Expand All @@ -96,7 +97,7 @@ jobs:

- name: Run tests
run: |
bin/ginkgo run --junit-report=junit-report.xml --tags istio --label-filter="integration" test/integration/istio
bin/ginkgo run ${{ runner.debug && '-v' || '' }} --tags istio --label-filter="integration" test/integration/istio
- name: Finalize Test
uses: "./.github/template/finalize-test"
Expand Down Expand Up @@ -131,7 +132,7 @@ jobs:
- name: Run tests without Istio
if: ${{ matrix.scenario == 'healthy' }}
run: |
bin/ginkgo run --junit-report=junit-report-healthy.xml --tags e2e --label-filter="self-mon-${{ matrix.signal-type }}-${{ matrix.scenario }}" test/e2e
bin/ginkgo run ${{ runner.debug && '-v' || '' }} --tags e2e --label-filter="self-mon-${{ matrix.signal-type }}-${{ matrix.scenario }}" test/e2e
# we need Istio for fault injection to simulate backpressure and outages
- name: Deploy Istio Module
Expand All @@ -141,7 +142,7 @@ jobs:
- name: Run tests with Istio
if: ${{ matrix.scenario != 'healthy' }}
run: |
bin/ginkgo run --junit-report=junit-report-unhealthy.xml --tags istio --label-filter="self-mon-${{ matrix.signal-type }}-${{ matrix.scenario }}" test/integration/istio
bin/ginkgo run ${{ runner.debug && '-v' || '' }} --tags istio --label-filter="self-mon-${{ matrix.signal-type }}-${{ matrix.scenario }}" test/integration/istio
- name: Finalize Test
uses: "./.github/template/finalize-test"
Expand Down

0 comments on commit f9705aa

Please sign in to comment.