-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 861 Bytes
/
Copy pathci.yml
File metadata and controls
36 lines (27 loc) · 861 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
31
32
33
34
35
36
name: ci
on:
push:
branches: [main]
pull_request:
# A second push to the same branch makes the first run pointless, so drop it.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# packageManager in package.json pins the version, so this needs no input
- uses: pnpm/action-setup@v4
# Pinned rather than read from engines, which is a range: CI should not
# change what it runs on because a new major was released.
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm lint
# The coverage gate fails the run under 100 percent, so this is the test step
- run: pnpm coverage
- run: pnpm build