-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (65 loc) · 2.13 KB
/
Copy pathcheck.yml
File metadata and controls
77 lines (65 loc) · 2.13 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Pull Request Checks
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-and-build:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
checks: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # 6.1.0
with:
node-version: "22"
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install
- name: Apply patches
run: |
cd packages/paradigm
bash scripts/patch-if-present.sh
- name: Typecheck client
uses: EPMatt/reviewdog-action-tsc@63d923a3c5b4497671940b8874f58a404e2351b5 # 1.11.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
level: error
fail_level: error
workdir: apps/client
tsc_flags: "-p tsconfig.json --noEmit"
- name: Typecheck server
uses: EPMatt/reviewdog-action-tsc@63d923a3c5b4497671940b8874f58a404e2351b5 # 1.11.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
level: error
fail_level: error
workdir: apps/server
tsc_flags: "-p tsconfig.json --noEmit"
- name: Lint server (ESLint)
uses: reviewdog/action-eslint@556a3fdaf8b4201d4d74d406013386aa4f7dab96 # 1.34.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
eslint_flags: "src/**/*.mts"
workdir: apps/server
fail_level: any
- name: Lint client (Biome)
uses: mongolyy/reviewdog-action-biome@abafdf75a79678ef8e2715298ee2dfc12262c82f #2.7.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
workdir: apps/client
fail_level: any
- name: Run tests
run: yarn test