-
-
Notifications
You must be signed in to change notification settings - Fork 109
57 lines (48 loc) · 1.49 KB
/
lint.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
name: lint
on:
workflow_call:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
go:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ "1.23" ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: false
- name: Copy swagger docs dummy file and Create dummy ui/dist/index.html
run: mkdir ui/dist && touch ui/dist/index.html
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash
version: v1.60
ui:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ "22.12.0" ]
steps:
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Check out code
uses: actions/checkout@v4
- run: npm ci --no-optional
working-directory: ui
- run: npm run prettier
working-directory: ui
- run: npm ci --no-optional
working-directory: e2e
- run: npm run prettier
working-directory: e2e