Added a wonderful CI

Testing on:
Ubuntu
Windows
macOS
Testing with:
node 12
node 14
node 16
This commit is contained in:
Clément Le Bihan
2022-05-16 20:20:11 +01:00
committed by GitHub
parent cc85121465
commit 2c0715dc41
+31
View File
@@ -0,0 +1,31 @@
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
os_matrix:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [12.x, 14.x, 16.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: 'back/package-lock.json'
- name: run npm commands
working-directory: back
run: |
npm install
npm test