Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Migrate to flyctl/api as the source of truth #401

Migrate to flyctl/api as the source of truth

Migrate to flyctl/api as the source of truth #401

Workflow file for this run

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