-
Notifications
You must be signed in to change notification settings - Fork 394
52 lines (41 loc) · 1.12 KB
/
Copy pathci.yml
File metadata and controls
52 lines (41 loc) · 1.12 KB
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
name: Node.js CI/CD
on:
pull_request:
branches: ["*"]
workflow_dispatch: # Allow manual triggering
jobs:
setup:
name: Build and Test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Deno 2.4.3
uses: denoland/setup-deno@v1
with:
deno-version: 2.4.3
- name: Setup Bun 1.2.19
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.2.19
- name: Setup Node.js 22.23.2
uses: actions/setup-node@v4
with:
node-version: 22.23.2
- name: Clean install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Type check
run: npx --no-install tsc --noEmit
- name: Lint
run: npm run lint
- name: Run tests (with coverage)
run: npm run test:coverage && npm run parse-r && npm run parse-fd && npm run test:deno && npm run test:bun