Skip to content

Commit

Permalink
matrix was too optimistic
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Jul 1, 2021
1 parent 8d0a5d5 commit b2ff810
Showing 1 changed file with 74 additions and 5 deletions.
79 changes: 74 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,15 @@ jobs:
# go build -v .


# run acceptance tests in a matrix with Terraform core versions
test:
name: Matrix Test
# Ubuntu: run acceptance tests in a matrix with Terraform core versions
test-ubuntu:
name: Ubuntu Matrix Test
# needs: build
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
terraform:
- '0.12.30'
# - '0.13.6'
Expand All @@ -76,3 +75,73 @@ jobs:
TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }}
run: |
bash internal/provider/acceptance.sh
# Windows: run acceptance tests in a matrix with Terraform core versions
test-windows:
name: Windows Matrix Test
# needs: build
runs-on: windows-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
terraform:
- '0.12.30'
# - '0.13.6'
# - '0.14.5'

steps:
- name: Add hosts entry
run: Add-Content -Path $env:windir\System32\drivers\etc\hosts -Value "`n127.0.0.1`tns.example.com" -Force

- name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.16'
id: go

- name: Check out code into the Go module directory
uses: actions/[email protected]

- name: TF acceptance tests
timeout-minutes: 10
env:
TF_ACC: "1"
TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }}
run: |
bash internal/provider/acceptance.sh
# MacOS: run acceptance tests in a matrix with Terraform core versions
test-macos:
name: MacOS Matrix Test
# needs: build
runs-on: macos-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
terraform:
- '0.12.30'
# - '0.13.6'
# - '0.14.5'

steps:
- name: Install Docker
run: brew cask install docker

- name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.16'
id: go

- name: Check out code into the Go module directory
uses: actions/[email protected]

- name: TF acceptance tests
timeout-minutes: 10
env:
TF_ACC: "1"
TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }}
run: |
bash internal/provider/acceptance.sh

0 comments on commit b2ff810

Please sign in to comment.