Skip to content

Commit

Permalink
ci: update tfproviderlint job
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiChangkuo committed Oct 20, 2022
1 parent 6b68ecb commit e6bb6a2
Showing 1 changed file with 30 additions and 15 deletions.
45 changes: 30 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,6 @@ jobs:
- name: Vet
run: make vet

# This workflow contains a job called "tfproviderlint"
tfproviderlint:
# 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@v2

# Runs tfproviderlint-github-action
- uses: bflad/tfproviderlint-github-action@master
with:
args: -V011=false -V012=false -V013=false -V014=false -R019=false ./...

golangci:
runs-on: ubuntu-latest
steps:
Expand All @@ -63,3 +48,33 @@ jobs:
version: latest
# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true

# This workflow contains a job called "tfproviderlint"
tfproviderlint:
# 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:
- uses: actions/setup-go@v3
with:
go-version: ">=1.16"

- name: Checkout provider
uses: actions/checkout@v3
with:
path: terraform-provider-huaweicloud

- name: Checkout tfproviderlint
uses: actions/checkout@v3
with:
repository: ShiChangkuo/tfproviderlint
path: tfproviderlint

# Runs tfproviderlint-github-action
- name: Install tfproviderlint and check
run: |
cd ${{ github.workspace }}/tfproviderlint/cmd/tfproviderlint
go install
cd ${{ github.workspace }}/terraform-provider-huaweicloud
tfproviderlint -V011=false -V012=false -V013=false -V014=false -R019=false ./...

0 comments on commit e6bb6a2

Please sign in to comment.