-
Notifications
You must be signed in to change notification settings - Fork 136
91 lines (83 loc) · 2.16 KB
/
tfprovider-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# This is a basic workflow to help you get started with Actions
name: tfprovider-lint
# Controls when the workflow will run
on:
pull_request:
paths:
- tencentcloud/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
tfprovider-lint:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-go@v3
with:
go-version: 1.18.1
cache: false
- name: install tfproviderlint
run: cd .ci/tools && go install github.com/bflad/tfproviderlint/cmd/tfproviderlint
# Runs a set of commands using the runners shell
- name: tfprovider-lint
run: |
tfproviderlint \
-c 1 \
-AT002 \
-AT005 \
-AT006 \
-AT007 \
-AT008 \
-R003 \
-R012 \
-R013 \
-S001 \
-S002 \
-S003 \
-S004 \
-S005 \
-S007 \
-S008 \
-S009 \
-S010 \
-S011 \
-S012 \
-S013 \
-S014 \
-S015 \
-S016 \
-S017 \
-S019 \
-S020 \
-S021 \
-S023 \
-S024 \
-S025 \
-S026 \
-S027 \
-S028 \
-S029 \
-S030 \
-S031 \
-S032 \
-S033 \
-S034 \
-S035 \
-S036 \
-S037 \
-V002 \
-V003 \
-V004 \
-V005 \
-V006 \
-V007 \
-V008 \
./tencentcloud