-
Notifications
You must be signed in to change notification settings - Fork 62
42 lines (38 loc) · 975 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
name: ci
on:
push:
branches:
- main
- v1
pull_request:
branches:
- main
- v1
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node: [18, 20]
fail-fast: false
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- uses: oven-sh/setup-bun@v2
if: ${{ matrix.os != 'windows-latest' && matrix.node == 20 }}
with:
bun-version: latest
- run: pnpm install
- run: pnpm lint
if: ${{ matrix.os != 'windows-latest' && matrix.node == 20 }}
- run: pnpm build
- run: pnpm vitest run --coverage
- run: pnpm test:bun --coverage
if: ${{ matrix.os != 'windows-latest' && matrix.node == 20 }}
# - name: Coverage
# uses: codecov/codecov-action@v1