Skip to content

Commit 153ccde

Browse files
committed
Verify fail-fast in unsupported environments
1 parent d03addb commit 153ccde

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/self-smoke-test-action.yml

+28
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,34 @@ env:
2929
PYTEST_THEME_MODE
3030
3131
jobs:
32+
fail-fast:
33+
if: >-
34+
github.event_name == 'pull_request' ||
35+
github.event.workflow_run.conclusion == 'success'
36+
37+
strategy:
38+
matrix:
39+
os: [macos-latest, windows-latest]
40+
41+
runs-on: ${{ matrix.os }}
42+
43+
timeout-minutes: 2
44+
45+
steps:
46+
- name: Check out the action locally
47+
uses: actions/checkout@v3
48+
with:
49+
path: test
50+
- name: Fail-fast in unsupported environments
51+
continue-on-error: true
52+
id: fail-fast
53+
uses: ./test
54+
- name: Error if action did not fail-fast in unsupported environments
55+
if: steps.fail-fast.outcome == 'success'
56+
run: |
57+
>&2 echo This action should fail-fast in unsupported environments.
58+
exit 1
59+
3260
smoke-test:
3361
if: >-
3462
github.event_name == 'pull_request' ||

0 commit comments

Comments
 (0)