2022-08-26 01:27:04 -07:00
|
|
|
name: Test Pull Requests
|
2019-12-24 16:25:44 -08:00
|
|
|
|
2022-09-14 01:50:42 -07:00
|
|
|
on: [pull_request]
|
2019-12-24 16:25:44 -08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2022-03-16 02:32:49 -07:00
|
|
|
timeout-minutes: 30
|
|
|
|
|
2019-12-24 16:25:44 -08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-04-08 09:39:01 -07:00
|
|
|
node-version: [14.x, 16.x]
|
2019-12-24 16:25:44 -08:00
|
|
|
|
|
|
|
steps:
|
2022-08-19 06:34:02 -07:00
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: npm install, build, and test
|
|
|
|
run: |
|
|
|
|
npm install -g npm@latest
|
|
|
|
npm install
|
|
|
|
npm run build --if-present
|
|
|
|
npm test
|
|
|
|
npm run lint
|
|
|
|
env:
|
|
|
|
CI: true
|