31 lines
658 B
YAML
31 lines
658 B
YAML
name: Tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x, 18.x, 20.x]
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install Dependencies
|
|
run: npm install
|
|
|
|
- name: Lint
|
|
if: matrix.node-version == '20.x'
|
|
run: |
|
|
npx standard
|
|
|
|
- name: Test
|
|
run: |
|
|
npm test
|