Skip to content

Update reuseble.yml #30

Update reuseble.yml

Update reuseble.yml #30

Workflow file for this run

name: Matrix demo
on:
push:
workflow_dispatch:
jobs:
build:
continue-on-error: true
strategy:
# Matrix strategy to run the job in multiple environments
matrix:
node-version: [12, 14, 16]
operating-system: [ubuntu-latest, windows-latest]
# Add additional combination
include:
- node-version: 18
operating-system: ubuntu-latest
# Excludes the combination
exclude:
- node-version: 12
operating-system: ubuntu-latest
# The job will run on the OS specified in the matrix
runs-on: ${{ matrix.operating-system }}
steps:
- name: Get the Code
uses: actions/checkout@v3
- name: Install NodeJS
uses: actions/setup-node@v3
with:
# Installs the Node.js version specified in the matrix
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm ci
- name: Build Project
run: npm build