Skip to content

all: Add support for Manual Deferred Actions #893

all: Add support for Manual Deferred Actions

all: Add support for Manual Deferred Actions #893

Workflow file for this run

# Continuous integration handling for Go
name: ci-go
on:
pull_request:
paths:
- .github/workflows/ci-go.yml
- .golangci.yml
- go.mod
- '**.go'
permissions:
contents: read
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
- run: go mod download
- uses: golangci/golangci-lint-action@82d40c283aeb1f2b6595839195e95c2d6a49081b # v5.0.0
terraform-provider-corner-tfprotov5:
defaults:
run:
working-directory: terraform-provider-corner
name: terraform-provider-corner (tfprotov5 / Terraform ${{ matrix.terraform}})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
path: terraform-provider-corner
repository: hashicorp/terraform-provider-corner
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: go mod edit -replace=github.com/hashicorp/terraform-plugin-framework=../
- run: go mod tidy
- run: go test -v ./internal/framework5provider
strategy:
fail-fast: false
matrix:
terraform: ${{ fromJSON(vars.TF_VERSIONS_PROTOCOL_V5) }}
terraform-provider-corner-tfprotov6:
defaults:
run:
working-directory: terraform-provider-corner
name: terraform-provider-corner (tfprotov6 / Terraform ${{ matrix.terraform}})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
path: terraform-provider-corner
repository: hashicorp/terraform-provider-corner
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: go mod edit -replace=github.com/hashicorp/terraform-plugin-framework=../
- run: go mod tidy
- run: go test -v ./internal/framework6provider
strategy:
fail-fast: false
matrix:
terraform: ${{ fromJSON(vars.TF_VERSIONS_PROTOCOL_V6) }}
test:
name: test (Go v${{ matrix.go-version }})
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.22', '1.21' ]
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go-version }}
- run: go mod download
- run: go test -coverprofile=coverage.out ./...
- run: go tool cover -html=coverage.out -o coverage.html
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: go-${{ matrix.go-version }}-coverage
path: coverage.html