ffjavascript/.github/workflows/ci.yml

35 lines
659 B
YAML
Raw Permalink Normal View History

2022-06-08 15:16:00 -07:00
name: Continuous Integration
2024-04-09 22:50:29 +01:00
on:
push:
branches:
- master
pull_request:
2022-06-08 15:16:00 -07:00
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
2024-04-09 22:47:44 +01:00
node-version: ["16", "18", "20"]
2022-06-08 15:16:00 -07:00
steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test