Skip to content

Commit

Permalink
Verify fail-fast in unsupported environments
Browse files Browse the repository at this point in the history
  • Loading branch information
br3ndonland committed Sep 7, 2024
1 parent 8d071a8 commit 1ce7f9d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/self-smoke-test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,34 @@ env:
PYTEST_THEME_MODE
jobs:
fail-fast:
if: >-
github.event_name == 'pull_request' ||
github.event.workflow_run.conclusion == 'success'
strategy:
matrix:
os: [macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

timeout-minutes: 2

steps:
- name: Check out the action locally
uses: actions/checkout@v3
with:
path: test
- name: Fail-fast in unsupported environments
continue-on-error: true
id: fail-fast
uses: ./test
- name: Error if action did not fail-fast in unsupported environments
if: steps.fail-fast.outcome == 'success'
run: |
>&2 echo This action should fail-fast in unsupported environments.
exit 1
smoke-test:
if: >-
github.event_name == 'pull_request' ||
Expand Down

0 comments on commit 1ce7f9d

Please sign in to comment.