-
Notifications
You must be signed in to change notification settings - Fork 50
42 lines (35 loc) · 864 Bytes
/
test.yml
File metadata and controls
42 lines (35 loc) · 864 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
36
37
38
39
40
41
42
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: # manually
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Install pnpm
uses: pnpm/action-setup@v5.0.0
with:
version: latest
run_install: false
- name: Set up Node
uses: actions/setup-node@v6.3.0
with:
node-version: node
cache: 'pnpm'
- name: Install dependencies
run: pnpm install -r --ignore-scripts
- name: Check formatting (Prettier)
run: pnpm exec prettier -c .
- name: Generate TypeScript types
run: pnpm postbuild
- name: Run type checks (TypeScript)
run: pnpm tsc
- name: Run linter (ESLint)
run: pnpm lint