File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 clean :
2323 runs-on : ubuntu-latest
2424 name : " Clean test resources"
25+ outputs :
26+ test-suites : ${{ steps.test-suites.outputs.test-suites }}
2527 steps :
2628 - name : Checkout
2729 uses : actions/checkout@v4
@@ -42,22 +44,22 @@ jobs:
4244 with :
4345 name : cleanup-log
4446 path : cleanup-*.log
45-
47+ - name : Schedule
48+ if : ${{ github.event_name == 'schedule' }}
49+ id : test-suites
50+ run : |
51+ echo 'test-suites=["--workflow-dispatch-only"]' >> "$GITHUB_OUTPUT"
52+ - name : No schedule
53+ if : ${{ github.event_name != 'schedule' }}
54+ id : test-suites
55+ run : |
56+ echo 'test-suites=["--issue-triggered-only", "--command-triggered-only", "--workflow-dispatch-only"]' >> "$GITHUB_OUTPUT"
4657 e2e :
4758 runs-on : ubuntu-latest
4859 needs : clean
4960 strategy :
5061 matrix :
51- test-suite :
52- - name : " workflow-dispatch"
53- option : " --workflow-dispatch-only"
54- description : " Direct workflow triggers"
55- - name : " issue-triggered"
56- option : " --issue-triggered-only"
57- description : " Tests via issue creation"
58- - name : " command-triggered"
59- option : " --command-triggered-only"
60- description : " Tests via comments"
62+ test-suite : ${{ fromJSON(needs.clean.outputs.test-suites) }}
6163 fail-fast : false
6264 if : ${{ !(github.event_name == 'schedule' && (matrix.test-suite.name == 'issue-triggered' || matrix.test-suite.name == 'command-triggered')) }}
6365 name : " E2E Tests: ${{ matrix.test-suite.description }}"
You can’t perform that action at this time.
0 commit comments