Skip to content

Merge pull request #75 from MrMarCode/MrMarCode/upgrade-to-node-20 #101

Merge pull request #75 from MrMarCode/MrMarCode/upgrade-to-node-20

Merge pull request #75 from MrMarCode/MrMarCode/upgrade-to-node-20 #101

Workflow file for this run

name: CI
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history
-
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run check-node-version
- run: npm run standards
test:
needs: [ build ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [ 16, 20, 'lts/*', 'latest' ]
steps:
- uses: actions/checkout@v4
-
name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci # Reinstall the dependencies to ensure they install with the current version of node
- run: npm test