Skip to content

Result of tsccr-helper -log-level=info gha update -latest . (#244) #544

Result of tsccr-helper -log-level=info gha update -latest . (#244)

Result of tsccr-helper -log-level=info gha update -latest . (#244) #544

Workflow file for this run

name: Tests
on:
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- 'website/*'
- 'tools/*'
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- 'website/*'
- 'tools/*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: 'go.mod'
id: go
- name: Run linters
uses: golangci/golangci-lint-action@38e1018663fa5173f3968ea0777460d3de38f256 # v5.3.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: ${{ fromJSON(vars.TF_VERSIONS_PROTOCOL_V5) }}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
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: ${{ fromJSON(vars.TF_VERSIONS_PROTOCOL_V6) }}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
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/