Skip to content

Allow overriding computed_optional_required #245

Allow overriding computed_optional_required

Allow overriding computed_optional_required #245

Workflow file for this run

# Continuous integration handling for Go
name: ci-go
on:
pull_request:
paths:
- .github/workflows/ci-go.yml
- go.mod
- '**.go'
- 'internal/cmd/testdata/**'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/hashicorp/terraform-plugin-codegen-spec
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: 'go.mod'
- run: go mod download
- run: go test -coverprofile=coverage.out ./...
- run: go tool cover -html=coverage.out -o coverage.html
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
with:
name: go-coverage
path: coverage.html