-
Notifications
You must be signed in to change notification settings - Fork 625
39 lines (36 loc) · 913 Bytes
/
lint.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
name: Lint
on: [pull_request]
permissions:
contents: read
pull-requests: read
jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # needed for `only-new-issues` to compare diffs
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'tools/go.mod'
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: "--config .golintci.yml"
only-new-issues: true
tfproviderlint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'tools/go.mod'
- run: make terraform-provider-lint