Skip to content

Commit

Permalink
add GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Apr 1, 2024
1 parent e1d5aef commit e98a654
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Node.js CI

on: [push, pull_request]

jobs:

lint:

name: lint

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ^20.8
- run: |
npm install --force
npm run make-grabs
npm run lint
test:

name: test (Node.js ${{ matrix.node-version }})

runs-on: ${{ matrix.os }}

strategy:

matrix:

os: [ubuntu-latest]

node: [21.x, 20.x, 18.x, '18.18.0']

include:
- os: windows-latest
node: lts/*
- os: macOS-latest
node: lts/*

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: |
npm install --force
npm run make-grabs
npm test

0 comments on commit e98a654

Please sign in to comment.