Set Node.js requirement in package.json engines to >=18.3 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, windows-latest] | |
node-version: [18.x, 20.x, 21.x] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ env.node-version }}-npm-lock-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ env.node-version }}-npm-lock- | |
- name: Use Node.js ${{ env.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ env.node-version }} | |
- name: Install dependencies | |
run: | | |
npm install | |
- name: Run tests | |
run: | | |
npm test |