mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-29 03:51:01 -05:00
Verify fail-fast in unsupported environments
This commit is contained in:
parent
d03addb8e6
commit
153ccde9bc
1 changed files with 28 additions and 0 deletions
28
.github/workflows/self-smoke-test-action.yml
vendored
28
.github/workflows/self-smoke-test-action.yml
vendored
|
@ -29,6 +29,34 @@ env:
|
||||||
PYTEST_THEME_MODE
|
PYTEST_THEME_MODE
|
||||||
|
|
||||||
jobs:
|
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:
|
smoke-test:
|
||||||
if: >-
|
if: >-
|
||||||
github.event_name == 'pull_request' ||
|
github.event_name == 'pull_request' ||
|
||||||
|
|
Loading…
Reference in a new issue