From 7e125f692c8e9fd62418da5a8055a6ec45206886 Mon Sep 17 00:00:00 2001 From: Lauro Fialho Mueller Date: Sun, 12 Nov 2023 16:33:56 +0100 Subject: [PATCH] feat(15-matrices): add fail-fast and include --- .github/workflows/15-matrices.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/15-matrices.yaml b/.github/workflows/15-matrices.yaml index 6630e1e..29a088d 100644 --- a/.github/workflows/15-matrices.yaml +++ b/.github/workflows/15-matrices.yaml @@ -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"