-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (51 loc) · 1.65 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
58
59
60
---
name: "Lint"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
on:
push:
branches: [ main, develop ]
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v6
env:
VALIDATE_ALL_CODEBASE: ${{ github.event_name != 'pull_request' }}
DEFAULT_BRANCH: develop
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILTER_REGEX_EXCLUDE: '.*assets/.*'
# go validator works pretty bad in super-linter, we'll use the original one
VALIDATE_GO: false
# do not validate SQL - linters are pretty useless in case of this library,
# and the functionality is tested using integration tests
VALIDATE_SQL: false
VALIDATE_SQLFLUFF: false
VALIDATE_CHECKOV: false
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Lint Golang
uses: golangci/golangci-lint-action@v6
with:
only-new-issues: ${{ github.event_name == 'pull_request' }}
args: >
--config=./.github/linters/.golangci.yml
codespell:
name: Check spelling
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@v2