Skip to content

chore(deps): bump github.com/hashicorp/terraform-plugin-log (#622) #2022

chore(deps): bump github.com/hashicorp/terraform-plugin-log (#622)

chore(deps): bump github.com/hashicorp/terraform-plugin-log (#622) #2022

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:
workflow_dispatch:
pull_request:
paths-ignore:
- "README.md"
push:
paths-ignore:
- "README.md"
# 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: 10
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.10"
- uses: actions/setup-go@v7
with:
go-version-file: "go.mod"
cache: true
- uses: hashicorp/setup-terraform@v4
- run: pip install yamale
- run: yamale -s gen/schema/schema.yaml gen/definitions/
- run: go mod download
- run: go generate
- run: git diff --exit-code
- run: go build -v .
# Run non-device tests (helper/unit tests) in a matrix with Terraform CLI versions.
# Acceptance tests (resource.Test / resource.UnitTest) auto-skip without TF_ACC=1,
# so a plain `go test ./...` runs the unit tests and silently skips device tests.
test:
name: Terraform Provider Acceptance Tests
needs: [build]
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: true
matrix:
# list whatever Terraform versions here you would like to support
terraform:
- "1.0.*"
- "1.5.*"
- "1.10.*"
- "1.15.*"
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version-file: "go.mod"
cache: true
- uses: hashicorp/setup-terraform@v4
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: go mod download
- run: go test -v -cover -timeout 10m ./...
timeout-minutes: 15