-
Notifications
You must be signed in to change notification settings - Fork 32
30 lines (30 loc) · 777 Bytes
/
ci.yml
File metadata and controls
30 lines (30 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x] # NOTE: Keep in sync with README.
# See Node.js release schedule: https://nodejs.org/en/about/previous-releases
# - v18 EOL: Apr 30 2025
# - v20 EOL: Apr 30 2026
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: npm run test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: yarn install
- run: yarn run prettier-check
- run: yarn run eslint