* eslint 8.56.0 --> 8.57.0 (No longer supports Node.js 14) * eslint-config-wikimedia 0.26.0 --> 0.27.0 * mocha 10.2.0 --> 10.4.0 Drop Node.js 14 support, and add support for Node.js 20. Bug: https://phabricator.wikimedia.org/T360422
28 lines
551 B
YAML
28 lines
551 B
YAML
name: Node.js build
|
|
on:
|
|
[pull_request, push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-v: [16.x, 18.x, 20.x]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-v }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-v }}
|
|
|
|
- name: Install package.json dependencies
|
|
run: npm install
|
|
|
|
- name: Run Node.js test suite
|
|
run: npm test
|
|
|
|
- name: Run linting
|
|
run: npm run lint
|