Skip to content

chore: update CI actions for project assigning and labeling (#180) #118

chore: update CI actions for project assigning and labeling (#180)

chore: update CI actions for project assigning and labeling (#180) #118

Workflow file for this run

## Test with multiple node versions.
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: utils/run-install.sh
- run: utils/run-lint.sh
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [10, 12, 14, 16, 18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Update npm to at least v7 for workspaces support
if: ${{ matrix.node-version < 16 }} # node@16 comes with npm@8, node@14 with npm@6
run: npm install -g npm@7 # npm@7 supports node >=10
- name: Install dependencies
run: utils/run-install.sh
- name: Test Node.js v${{ matrix.node-version }}
run: utils/run-test.sh