Skip to content

build(deps): bump github.com/hashicorp/copywrite from 0.16.4 to 0.16.6 in /tools #373

build(deps): bump github.com/hashicorp/copywrite from 0.16.4 to 0.16.6 in /tools

build(deps): bump github.com/hashicorp/copywrite from 0.16.4 to 0.16.6 in /tools #373

Workflow file for this run

name: Tests
on:
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- 'website/*'
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- 'website/*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
id: go
- name: Run linters
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
with:
version: latest
- name: Go fmt
run: |
make fmt
- name: Go vet
run: |
make vet
- name: Build
run: |
go build -v .
tfprotov5:
name: Protocol Version 5 (${{ matrix.os}}, Terraform ${{ matrix.terraform}})
needs: build
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
terraform:
- '0.12.*'
- '0.13.*'
- '0.14.*'
- '0.15.*'
- '1.0.*'
- '1.1.*'
- '1.2.*'
- '1.3.*'
- '1.4.*'
- '1.5.*'
- '1.6.0-alpha20230816'
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # v2.0.3
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: go mod download
- run: go test -v -cover ./internal/framework5provider/
- run: go test -v -cover ./internal/protocolprovider/
- run: go test -v -cover ./internal/sdkv2provider/
env:
TF_ACC: "1"
- run: go test -v -cover ./internal/sdkv2testingprovider/
env:
TF_ACC: "1"
- run: go test -v -cover ./internal/tf5muxprovider/
- run: go test -v -cover ./internal/tf6to5provider/
tfprotov6:
name: Protocol Version 6 (${{ matrix.os}}, Terraform ${{ matrix.terraform}})
needs: build
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
terraform:
- '1.0.*'
- '1.1.*'
- '1.2.*'
- '1.3.*'
- '1.4.*'
- '1.5.*'
- '1.6.0-alpha20230816'
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # v2.0.3
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: go mod download
- run: go test -v -cover ./internal/framework6provider/
- run: go test -v -cover ./internal/protocolv6provider/
- # Terraform CLI 1.1.5+ is required for upgrading sdk/v2
if: matrix.terraform != '1.0.*'
run: go test -v -cover ./internal/tf5to6provider/
- run: go test -v -cover ./internal/tf6muxprovider/