Skip to content

ci: migrate to GH Actions (#299) #6

ci: migrate to GH Actions (#299)

ci: migrate to GH Actions (#299) #6

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# TODO: We need to re-introduce Node 6 and 7 once we have a way to run tests on them.
node-version: [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run pretest
- name: Run tests
run: npm test