-
Notifications
You must be signed in to change notification settings - Fork 602
52 lines (49 loc) · 1.37 KB
/
acctest-terraform-lint.yml
File metadata and controls
52 lines (49 loc) · 1.37 KB
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
name: Golangci-Lint
on:
pull_request:
paths:
- .github/workflows/acctest-terraform-lint.yml
- alicloud/*.go
jobs:
# golangci-lint-review-log:
# name: golangci-lint-with-review-log
# runs-on: ubuntu-latest
# steps:
# - name: Check out code into the Go module directory
# uses: actions/checkout@v2
# - name: golangci-lint
# uses: reviewdog/action-golangci-lint@v2
# with:
# go_version: '1.19.3'
# golangci_lint_flags: '--timeout=25m --disable-all -E gofmt ./alicloud'
# level: info
# reporter: github-pr-check
errcheck:
name: runner / errcheck
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v6
- name: errcheck
uses: reviewdog/action-golangci-lint@v2
with:
golangci_lint_flags: '--tests=false --timeout=25m --default=none -E errcheck'
tool_name: errcheck
level: info
reviewdog_version: 'v0.21.0'
golangci_lint_version: 'v2.7.2'
tflint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version: '1.25'
- run: make tools
- run: make tflint