forked from ansible/terraform-provider-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 911 Bytes
/
linters.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
name: Linters
on:
push:
branches:
- main
- stable-*
pull_request:
jobs:
linters:
name: Linters
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Require: The version of golangci-lint to use.
version: v1.54
# Optional: golangci-lint command line arguments.
# Note: By default, the `.golangci.yml` file should be at the root of the repository.
# The location of the configuration file can be changed by using `--config=`
args: --timeout=10m --config=.golangci.yml
# Optional: if set to true, then the action won't cache or restore ~/go/pkg.
skip-pkg-cache: true