-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.28 KB
/
Copy pathcheck.yml
File metadata and controls
51 lines (43 loc) · 1.28 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
name: Code Checks
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: style-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
ui:
name: "UI"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/dangerous-git-checkout
- uses: ./.github/actions/pnpm-install
- name: Types Check
run: pnpm typecheck
env:
NODE_OPTIONS: --max-old-space-size=4096
- name: Prettier check
run: pnpm prettier --check .
- name: Lint
run: pnpm lint
api:
name: "API"
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/dangerous-git-checkout
- uses: ./.github/actions/go-setup
with:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Check go.mod/go.sum to be consistent
run: find . -name go.sum -exec make --always-make {} \; && git diff --exit-code
- name: Go lint
run: make lint