-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 884 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Run CI
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18
- 20
- 22
name: Node ${{ matrix.node-version }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
check-latest: true
node-version: ${{ matrix.node-version }}
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Check code style
run: |
yarn run fmt
git --no-pager diff --exit-code
- name: CI tests
run: yarn run test
- name: Type checking
run: yarn build