-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
74 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|
@@ -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 |