-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (31 loc) · 787 Bytes
/
ci.yaml
File metadata and controls
35 lines (31 loc) · 787 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
name: CI
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
node: [20, 21, 22, 23]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
run_install: false
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: pnpm install
- run: pnpm biome ci
- run: pnpm test
- run: pnpm build
- run: pnpm test:coverage
if: ${{ matrix.node == 23 }}
- uses: codecov/codecov-action@v4
if: ${{ matrix.node == 23 }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/clover.xml
verbose: true