-
Notifications
You must be signed in to change notification settings - Fork 201
55 lines (50 loc) · 1.3 KB
/
validate.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: validate
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions: read-all
env:
LINT_VERSION: v1.53
jobs:
codespell:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: install deps
# Version of codespell bundled with Ubuntu is way old, so use pip.
run: pip install codespell
- name: run codespell
run: codespell -L ro,hastable,shouldnot
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: install deps
run: |
sudo apt-get -qq update
sudo apt-get -qq install libseccomp-dev libdevmapper-dev
- name: lint
uses: golangci/golangci-lint-action@v3
with:
version: "${{ env.LINT_VERSION }}"
only-new-issues: true
args: --verbose
# Extra linters, only checking new code from a pull request.
- name: Extra golangci-lint config. switcharoo
run: mv .golangci-extra.yml golangci.yml
- name: lint-extra
uses: golangci/golangci-lint-action@v3
with:
version: "${{ env.LINT_VERSION }}"
only-new-issues: true
- name: validate seccomp
run: ./tools/validate_seccomp.sh ./pkg/seccomp