feat(vpc): add vpc subnet resource and datasource support. #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a ci workflow to help you get started with Actions | |
name: CI | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- 'examples/**' | |
- '*.md' | |
# 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: | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ">=1.18" | |
- run: go version | |
- name: Build | |
run: make build FLAGS='-mod=readonly' | |
- name: Vet | |
run: make vet | |
golangci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ">=1.18" | |
- uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version | |
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" | |
# Ignoring bflad/tfproviderlint until https://github.com/bflad/tfproviderlint/issues/255 is fixed... | |
# using ShiChangkuo/tfproviderlint instead | |
# Ignore rules: | |
# + R019: d.HasChanges() has many arguments, consider d.HasChangesExcept() | |
# + S018: schema should use TypeList with MaxItems 1 | |
# + V011: custom SchemaValidateFunc should be replaced with validation.StringLenBetween() | |
# + V012: want "custom SchemaValidateFunc should be replaced with validation.IntAtLeast(), validation.IntAtMost(), | |
# or validation.IntBetween() | |
# + V013: custom SchemaValidateFunc should be replaced with validation.StringInSlice() or | |
# validation.StringNotInSlice() | |
# + V014: custom SchemaValidateFunc should be replaced with validation.IntInSlice() or validation.IntNotInSlice() | |
tfproviderlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ">=1.18" | |
- name: Checkout provider | |
uses: actions/checkout@v3 | |
with: | |
path: terraform-provider-hcso | |
- name: Checkout tfproviderlint | |
uses: actions/checkout@v3 | |
with: | |
repository: ShiChangkuo/tfproviderlint | |
path: tfproviderlint | |
- name: Install tfproviderlint and Check | |
run: | | |
cd ${{ github.workspace }}/tfproviderlint/cmd/tfproviderlint | |
go install | |
cd ${{ github.workspace }}/terraform-provider-hcso | |
tfproviderlint -R019=false -S018=false -V011=false -V012=false -V013=false -V014=false ./... |