Skip to content

Commit 4f8ccae

Browse files
kolyshkindrakenclimber
authored andcommitted
ci/gha: add golangci-lint job
This is mostly to check pull requests in order to make maintainers' jobs a tad easier. Signed-off-by: Kir Kolyshkin <[email protected]> Acked-by: Paul Moore <[email protected]> Signed-off-by: Tom Hromatka <[email protected]>
1 parent dc8c9cd commit 4f8ccae

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/validate.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: validate
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
branches:
7+
- master
8+
- main
9+
- release-*
10+
pull_request:
11+
12+
jobs:
13+
14+
lint:
15+
runs-on: ubuntu-20.04
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: install deps
19+
run: |
20+
sudo apt -q update
21+
sudo apt -q install libseccomp-dev
22+
- uses: golangci/golangci-lint-action@v2
23+
with:
24+
# must be specified without patch version
25+
version: v1.41
26+
27+

0 commit comments

Comments
 (0)