-
Notifications
You must be signed in to change notification settings - Fork 21
72 lines (57 loc) · 1.4 KB
/
main.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Begin CI...
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Use Deno 1.x
uses: denolib/setup-deno@v2
with:
deno-version: v1.x
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Lint (Biome)
run: pnpm run lint:biome
env:
CI: true
- name: Lint (TypeScript)
run: pnpm run lint:ts
env:
CI: true
- name: Test (Node.js)
run: pnpm run test:node
env:
CI: true
- name: Send coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/lcov.info
- name: Test (Deno)
run: pnpm run test:deno
env:
CI: true
- name: Test (Bun)
run: pnpm run test:bun
env:
CI: true
- name: Build
run: pnpm run build:ts
env:
CI: true
- name: Build (docs)
run: pnpm run build:docs
env:
CI: true