Skip to content

Merge pull request #7 from Traceableai/update-goreleaser #46

Merge pull request #7 from Traceableai/update-goreleaser

Merge pull request #7 from Traceableai/update-goreleaser #46

Workflow file for this run

# This GitHub action runs your tests for each commit push and/or PR. Optionally
# you can turn it on using a cron schedule for regular testing.
#
name: Tests
on:
pull_request:
paths-ignore:
- 'README.md'
- 'docs/**'
push:
paths-ignore:
- 'README.md'
- 'docs/**'
jobs:
# run unit tests in a matrix with Terraform core versions
test:
name: Matrix Test
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
# list whatever Terraform versions here you would like to support
terraform:
- '0.12.*'
- '0.13.*'
- '0.14.*'
- '0.15.*'
- '1.0.*'
- '1.1.*'
- '1.2.*'
- '1.3.*'
- '1.4.*'
- '1.5.*'
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- name: Get dependencies
run: |
go mod download
- name: Unit tests
timeout-minutes: 10
# env:
# TF_ACC: "1"
run: |
go test -v ./...