-
-
Notifications
You must be signed in to change notification settings - Fork 58
53 lines (43 loc) · 1.27 KB
/
Copy pathon-pull-request.yml
File metadata and controls
53 lines (43 loc) · 1.27 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
name: Run Pull Request Checks
on: [pull_request]
jobs:
tests:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x, 24.x, 26.x]
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
with:
version: 11
cache: true
run_install: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Compile
run: pnpm build:code
- name: Tests
run: pnpm test
lint_and_format:
name: Run Lint and Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
with:
version: 11
cache: true
run_install: true
- uses: actions/setup-node@v7
with:
node-version: 24.x
cache: pnpm
- name: Linted
run: pnpm lint
- name: Nice
run: pnpm prettier