forked from warewulf/warewulf
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 875 Bytes
/
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
on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
paths-ignore:
- 'docs/**'
name: golangci-lint
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix: # Pin go version to the one(s) below.
go: [ '1.17' ]
steps:
- uses: actions/checkout@v3
- name: Create config
run: make config
- name: Setup go ${{ matrix.go }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: true
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.46.2
skip-build-cache: true
skip-pkg-cache: true
args: --build-tags "containers_image_openpgp containers_image_ostree" --timeout 5m --skip-dirs internal/pkg/staticfiles