-
Notifications
You must be signed in to change notification settings - Fork 107
50 lines (47 loc) · 1.17 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
on:
push:
workflow_call:
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21
- name: golangci-lint
uses: golangci/[email protected]
with:
version: v1.55
args: --timeout=3m
installer-lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: installer
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install PyLint
run: pip install pylint
- name: Run PyLint
run: pylint --rcfile=.pylintrc windows/
lint-frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web/massastation
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
cache-dependency-path: ./web/massastation/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run code formating and linting
run: npm run fmt:check