fix: omit empty updateMode in UpdateIntegrationInstanceInput (v1.18.0 regression) #421
Workflow file for this run
This file contains hidden or 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
| name: Terraform Provider Checks | |
| on: [pull_request] | |
| jobs: | |
| golangci: | |
| name: golangci-lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version-file: "go.mod" | |
| cache: true | |
| - 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: working directory, useful for monorepos | |
| # working-directory: somedir | |
| # Optional: golangci-lint command line arguments. | |
| # args: --issues-exit-code=0 | |
| # Optional: show only new issues if it's a pull request. The default value is `false`. | |
| # only-new-issues: true | |
| # Optional: if set to true then the all caching functionality will be complete disabled, | |
| # takes precedence over all other caching options. | |
| # skip-cache: true | |
| # Optional: if set to true then the action don't cache or restore ~/go/pkg. | |
| # skip-pkg-cache: true | |
| # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. | |
| # skip-build-cache: true | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v3.0.2 | |
| - name: Set up Go 1.x | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version-file: "go.mod" | |
| cache: true | |
| - name: Setup dependency cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: Get dependencies | |
| run: | | |
| go mod download | |
| make tools | |
| - name: Build | |
| run: go build | |
| - name: Test | |
| run: | | |
| make test | |
| # Install a verified Terraform CLI and point the test framework at it. | |
| # Without this, terraform-plugin-testing auto-installs the CLI via hc-install, | |
| # which fails checksum verification now that HashiCorp's signing key has | |
| # expired ("openpgp: key expired"). TF_ACC_TERRAFORM_PATH bypasses that path. | |
| - name: Set up Terraform CLI | |
| uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_wrapper: false | |
| - name: Expose Terraform CLI path to acceptance tests | |
| run: echo "TF_ACC_TERRAFORM_PATH=$(command -v terraform)" >> "$GITHUB_ENV" | |
| - name: Acceptance Tests | |
| run: make testacc | |
| env: | |
| JUPITERONE_ACCOUNT_ID: ${{ secrets.JUPITERONE_ACCOUNT_ID }} | |
| JUPITERONE_API_KEY: ${{ secrets.JUPITERONE_API_KEY }} | |
| JUPITERONE_REGION: ${{ secrets.JUPITERONE_REGION }} |