-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (53 loc) · 1.28 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
name: Lint CI
on:
push:
branches:
- main
- gh-readonly-queue/main/*
pull_request:
branches:
- main
jobs:
lint:
name: lint
runs-on: ubuntu-22.04
strategy:
matrix:
go: ["1.20"]
node: ["18"]
steps:
- name: Checkout branch
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Setup golang
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
- name: Build web
run: |
cd web
yarn install --frozen-lockfile
yarn build
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53.2
args: --deadline=10m --verbose
- name: Lint Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: ./build/Dockerfile
ignore: DL3018,DL3003
- name: Lint Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: ./build/local.Dockerfile
ignore: DL3018,DL3003