Skip to content

Update images digests #389

Update images digests

Update images digests #389

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@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- 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@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- uses: hashicorp/setup-terraform@v2
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/