-
-
Notifications
You must be signed in to change notification settings - Fork 30
64 lines (62 loc) · 1.76 KB
/
pull_request.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
name: Pull Request Validation Workflow
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, labeled, synchronize, ready_for_review]
jobs:
backend-checks:
name: Backend Checks
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x.x]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Backend Dependencies
run: npm install --force
working-directory: backend
- name: Backend Lint Validation
run: npm run lint
working-directory: backend
- name: Backend TypeScript Validation
run: npm run lint:tsc
working-directory: backend
web-checks:
name: Web Checks
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x.x]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Web Dependencies
run: npm install --force
working-directory: web
- name: Web Lint Validation
run: npm run lint
working-directory: web
- name: Web Code Formatting Validation
run: npm run format
working-directory: web
- name: Web TypeScript Validation
run: npm run typecheck
working-directory: web
- name: Web Knip Validation
run: npm run knip
working-directory: web