Skip to content

Commit 7548364

Browse files
committed
CI: Add tfproviderlint workflow
1 parent b2adb9e commit 7548364

File tree

5 files changed

+136
-49
lines changed

5 files changed

+136
-49
lines changed

.github/workflows/tfproviderlint.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# https://github.com/bflad/tfproviderlint
2+
3+
name: tfproviderlint
4+
5+
on: [push,pull_request]
6+
7+
jobs:
8+
tfproviderlint:
9+
name: tfproviderlint
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/[email protected]
14+
- run: make tfproviderlint

GNUmakefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,9 @@ fmtcheck:
4646
errcheck:
4747
@sh -c "'$(CURDIR)/scripts/errcheck.sh'"
4848

49-
.PHONY: default build test testacc-up testacc-down testacc vet fmt fmtcheck errcheck
49+
tfproviderlint:
50+
go run github.com/bflad/tfproviderlint/cmd/tfproviderlintx \
51+
-XAT001=false -XR003=false -XR005=false -XS001=false -XS002=false \
52+
./...
53+
54+
.PHONY: default build test testacc-up testacc-down testacc vet fmt fmtcheck errcheck tfproviderlint

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ module github.com/gitlabhq/terraform-provider-gitlab
33
go 1.16
44

55
require (
6+
github.com/bflad/tfproviderlint v0.27.0
67
github.com/hashicorp/go-retryablehttp v0.7.0
7-
github.com/hashicorp/terraform-plugin-sdk v1.16.0
8+
github.com/hashicorp/terraform-plugin-sdk v1.16.1
89
github.com/mitchellh/hashstructure v1.0.0
910
github.com/xanzy/go-gitlab v0.50.0
1011
)

0 commit comments

Comments
 (0)