Skip to content

Bump github.com/hashicorp/terraform-plugin-go from 0.19.0 to 0.29.0 #148

Bump github.com/hashicorp/terraform-plugin-go from 0.19.0 to 0.29.0

Bump github.com/hashicorp/terraform-plugin-go from 0.19.0 to 0.29.0 #148

Workflow file for this run

# Terraform Provider testing workflow.
name: Tests
# This GitHub action runs your tests for each pull request and push.
# Optionally, you can turn it on using a schedule for regular testing.
on:
pull_request:
workflow_call:
# Testing only needs permissions to read the repository contents.
permissions:
contents: read
jobs:
# Ensure project builds before running testing matrix
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version-file: "go.mod"
cache: true
- uses: hashicorp/[email protected]
with:
terraform_version: "1.10.*"
terraform_wrapper: false
- run: go mod download
- run: go build -v .
- name: Run linters
uses: golangci/[email protected]
with:
version: latest
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version-file: "go.mod"
cache: true
- uses: hashicorp/[email protected]
with:
terraform_version: "1.10.*"
terraform_wrapper: false
- run: go generate ./...
- name: git diff
run: |
git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit."; exit 1)
# Run unit tests
test:
name: Unit Test
needs: build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version-file: "go.mod"
cache: true
- run: go mod download
- name: Unit tests
run: go test -v -cover ./...