Skip to content

Commit

Permalink
feat(15-matrices): add fail-fast and include
Browse files Browse the repository at this point in the history
  • Loading branch information
lauromueller committed Nov 12, 2023
1 parent 8fc15eb commit 7e125f6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/15-matrices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,29 @@ jobs:
name: ${{ matrix.os }}-${{ matrix.node-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 21.x]
os:
- ubuntu-latest
- windows-latest
include:
- os: ubuntu-latest
node-version: 16.x
- os: ubuntu-latest
node-version: 21.x
tag: experimental
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Fail if experimental
if: matrix.tag == 'experimental'
run: exit 1
- name: Perform some tests
run: echo "Running tests on OS ${{ matrix.os }} and NodeJS ${{ matrix.node-version }}"
run: |
echo "Running tests on OS ${{ matrix.os }} and NodeJS ${{ matrix.node-version }}"
sleep 10
- name: Upload test results
run: echo "Uploading test results"

0 comments on commit 7e125f6

Please sign in to comment.