-
Notifications
You must be signed in to change notification settings - Fork 2
28 lines (28 loc) · 826 Bytes
/
ci.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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["16", "18", "20"]
name: Node ${{ matrix.node }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Lint
run: yarn prettier --check .
- name: Circular dependency check
uses: gerrit0/circular-dependency-check@v1
with:
entry: index.js