This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
Specify private/custom network in app resources #398
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
name: Tests | |
on: | |
pull_request_target: | |
types: [labeled] | |
paths-ignore: | |
- 'README.md' | |
push: | |
branches-ignore: ["dependabot/**"] | |
paths-ignore: | |
- 'README.md' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
env: | |
GO_VERSION: '1.20' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'safe to test') | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- uses: actions/checkout@v3 | |
- run: go mod download | |
- run: go build -v . | |
test: | |
name: Terraform Provider Acceptance Tests | |
needs: build | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
matrix: | |
terraform: | |
- '1.0.*' | |
- '1.1.*' | |
- '1.2.*' | |
- '1.3.*' | |
- '1.4.*' | |
steps: | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: ${{ matrix.terraform }} | |
terraform_wrapper: false | |
- uses: actions/checkout@v3 | |
- run: go mod download | |
- env: | |
TF_ACC: "1" | |
FLY_TF_TEST_APP: acctestapp | |
FLY_TF_TEST_ORG: fly-terraform-ci | |
FLY_API_TOKEN: ${{ secrets.FLY_AUTH_TOKEN_CI }} | |
run: go test -v -cover ./internal/provider/ | |
timeout-minutes: 10 |