Skip to content

Upgrade all the things in go.mod #996

Upgrade all the things in go.mod

Upgrade all the things in go.mod #996

Workflow file for this run

name: Tests
on:
pull_request:
branches: ['main']
push:
branches: ['main']
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: 'go.mod'
- 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)
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
terraform:
- '1.3.*'
- '1.2.*'
- '1.1.*'
- '1.0.*'
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.0
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: go mod download
- run: go build -v .
# TODO(jason): Enable -race
- run: TF_ACC=1 go test -v -cover ./internal/provider/