Skip to content

15 - Working with Matrices #1

15 - Working with Matrices

15 - Working with Matrices #1

Workflow file for this run

name: 15 - Working with Matrices
on:
workflow_dispatch:
jobs:
backwards-compatibility:
name: ${{ matrix.os }}-${{ matrix.node-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
os:
- ubuntu-latest
- windows-latest
steps:
- name: Setup node
uses: actions/setup-node@v3
with: ${{ matrix.node-version }}
- name: Perform some tests
run: echo "Running tests on OS ${{ matrix.os }} and NodeJS ${{ matrix.node-version }}"