-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (35 loc) · 819 Bytes
/
main.yml
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
31
32
33
34
35
36
name: CI
on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- node: 20
eslint: 9
- node: 18
eslint: 8
- node: 12
eslint: 5
name: node@${{ matrix.node }} and eslint@${{ matrix.eslint }}
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm install eslint@${{ matrix.eslint }}
- run: npm test
format:
runs-on: ubuntu-latest
name: Check Formatting
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run prettier