Skip to content

feat(workspace): add new data source to query service detail #17029

feat(workspace): add new data source to query service detail

feat(workspace): add new data source to query service detail #17029

Workflow file for this run

# 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"
# 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
env:
GOFLAGS: "-buildvcs=false"
steps:
- uses: actions/checkout@v3
- uses: bflad/tfproviderlint-github-action@master
with:
args: -R019=false -S018=false -V011=false -V012=false -V013=false -V014=false ./...
schema-markdown-check:
runs-on: ubuntu-latest
env:
# when HW_SCHEMA is not empty, custom schema config will be contained in the description of parameters
# for the schema-markdown-check
HW_SCHEMA: "true"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ">=1.18"
- name: Check schemas and markdown docs
shell: bash {0}
run: |
cd scripts/markdown_check
go build -o markdown_check main.go
./markdown_check >check_result.log
# There are three known issues for huaweicloud_mapreduce_cluster
ret=$(($?-3))
if [ $ret -gt 0 ]; then
echo "ERROR: find $ret inconsistencies between schemas and markdown docs"
echo -e "please ignore the errors in huaweicloud_mapreduce_cluster\n"
grep -B1 "\[ERROR\]" check_result.log
fi
exit $ret
api-comment-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ">=1.18"
- name: Check api comments
shell: bash {0}
run: |
cd scripts/api_comment_check
go run main.go
exit $?