-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (53 loc) · 1.32 KB
/
quality-assurance.yaml
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
name: Quality assurance
on:
- push
- workflow_dispatch
env:
GO_VERSION: '1.21.4'
PNPM_VERSION: '8.13.1'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: go.sum
- uses: pnpm/action-setup@v3
with:
version: ${{ env.PNPM_VERSION }}
- name: Install C/C++ deps
run: sudo apt install libudev-dev -y
- name: Install ui deps
run: |
cd ui
pnpm install --frozen-lockfile
cd ../..
- name: Create dummy dist dir
run: |
mkdir -p ui/dist
echo "." > ui/dist/.gitkeep
- name: Install go deps
run: go mod tidy
- name: Lint with golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --config=./.golangci.yaml
skip-cache: true
- name: Lint with revive
uses: docker://morphy/revive-action:v2
with:
config: revive.toml
path: "./..."
- name: Lint ui scripts
run: |
cd ui
pnpm run lint:scripts
- name: Lint ui styles
run: |
cd ui
pnpm run lint:styles