Skip to content

Adding experimental status and example usage for ExpectKnownValue, ExpectKnownOutputValue, and ExpectKnownOutputValueAtPath plan and state checks #409

Adding experimental status and example usage for ExpectKnownValue, ExpectKnownOutputValue, and ExpectKnownOutputValueAtPath plan and state checks

Adding experimental status and example usage for ExpectKnownValue, ExpectKnownOutputValue, and ExpectKnownOutputValueAtPath plan and state checks #409

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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
- run: go mod download
- uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
test:
name: test (Go ${{ matrix.go-version }} / TF ${{ matrix.terraform-version }})
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.21', '1.20' ]
terraform-version: ${{ fromJSON(vars.TF_VERSIONS_PROTOCOL_V5) }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go-version }}
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
with:
terraform_version: ${{ matrix.terraform-version }}.*
terraform_wrapper: false
- run: go mod download
- run: go test -coverprofile=coverage.out ./...
env:
TF_ACC: "1"
- run: go tool cover -html=coverage.out -o coverage.html
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: go-${{ matrix.go-version }}-terraform-${{ matrix.terraform-version }}-coverage
path: coverage.html