-
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
2 changed files
with
74 additions
and
37 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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Tests | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
paths-ignore: | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- 'website/*' | ||
push: | ||
branches: [ main ] | ||
paths-ignore: | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- 'website/*' | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
|
||
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: '1.15' | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/[email protected] | ||
|
||
- name: Go fmt | ||
run: | | ||
make fmt | ||
- name: Go vet | ||
run: | | ||
make vet | ||
- name: Build | ||
run: | | ||
go build -v . | ||
# run acceptance tests in a matrix with Terraform core versions | ||
test: | ||
name: Matrix Test | ||
needs: build | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
terraform: | ||
- '0.12.30' | ||
- '0.13.6' | ||
- '0.14.5' | ||
steps: | ||
|
||
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: '1.15' | ||
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 |
This file was deleted.
Oops, something went wrong.