-
Notifications
You must be signed in to change notification settings - Fork 345
39 lines (39 loc) · 970 Bytes
/
ci-lint.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
name: CI Lint and Sync
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: golangci-lint run
uses: golangci/golangci-lint-action@v6
with:
version: v1.61.0
skip-pkg-cache: true
skip-build-cache: true
args: --timeout=5m0s -v
bash-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Shellcheck
uses: azohra/[email protected]
with:
severity: "error"
go-mod-tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.23
- name: go mod tidy
run: |
./scripts/ci/check_go_modules.sh
sync-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: sync readme
run: |
./scripts/ci/check_readme_in_sync.sh