Skip to content

Create advanced_syntaxes_demo.yml #1

Create advanced_syntaxes_demo.yml

Create advanced_syntaxes_demo.yml #1

name: Matrix job
on:
push:
jobs:
demo_matrix:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
node: [14, 16]
include:
- os: windows-latest
node: 16
npm: 6
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- if: ${{ matrix.npm}}
run: npm install -g npm@${matrix.npm}}
- run: npm --version