-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (49 loc) · 1.24 KB
/
test.yml
File metadata and controls
62 lines (49 loc) · 1.24 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
52
53
54
55
56
57
58
59
60
61
62
name: Test
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
code-style-check:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Pnpm
run: npm install -g corepack@latest && corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "pnpm"
- name: Install Dependencies
run: pnpm install
- name: Code Style Check
run: pnpm biome check
- name: Changeset Check
run: pnpm changeset status --since=origin/main
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install Pnpm
run: npm i -g corepack@latest --force && corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.20.0
cache: "pnpm"
- name: Install Dependencies
run: pnpm install
- name: Run Tests
run: pnpm test