Skip to content

Commit ee113fe

Browse files
committed
illustrate use of fail-fast strategy
1 parent ea8f739 commit ee113fe

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ on:
66

77
jobs:
88
test:
9-
runs-on: ${{ matrix.os }}
9+
1010
strategy:
1111
matrix:
1212
os:
1313
- ubuntu-latest
1414
- macos-latest
1515
- windows-latest
16+
fail-fast: false
17+
18+
runs-on: ${{ matrix.os }}
19+
1620
steps:
1721
- uses: actions/checkout@v3
1822
- uses: ./

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,24 @@ Installs git-annex on Linux, macOS, or Windows.
66
## Example
77

88
The workflow snippet shown below installs git-annex on Linux, macOS, and Windows.
9+
Setting fail-fast to false allows other jobs in the matrix to continue if any job in the matrix fails.
10+
911
Once installed, the help command is invoked to demonstrate git-annex is available from the command line.
1012

1113
```yaml
1214
jobs:
1315
test:
14-
runs-on: ${{ matrix.os }}
16+
1517
strategy:
1618
matrix:
1719
os:
1820
- ubuntu-latest
1921
- macos-latest
2022
- windows-latest
23+
fail-fast: false
24+
25+
runs-on: ${{ matrix.os }}
26+
2127
steps:
2228
- uses: actions/checkout@v3
2329
- uses: jstritch/setup-git-annex@v1

0 commit comments

Comments
 (0)