Skip to content

chore: consistently validate workspace_id (#326) #521

chore: consistently validate workspace_id (#326)

chore: consistently validate workspace_id (#326) #521

name: Acceptance Tests
"on":
push:
branches:
- main
paths:
- go.mod
- go.sum
- "**/*.go"
- .github/workflows/acceptance-tests.yaml
pull_request_target:
branches:
- main
paths:
- go.mod
- go.sum
- "**/*.go"
- .github/workflows/acceptance-tests.yaml
permissions: {}
jobs:
acceptance_tests:
permissions:
contents: read
name: Acceptance Tests
environment: ${{ github.event_name == 'push' && 'Acceptance Tests (main)' || 'Acceptance Tests' }}
runs-on: ubuntu-latest
steps:
- if: |
github.event_name == 'pull_request_target'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- if: |
github.event_name == 'push'
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: '1.5.*'
terraform_wrapper: false
- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest
- name: Run acceptance tests
run: make testacc
env:
PREFECT_API_URL: ${{ secrets.ACC_TEST_PREFECT_API_URL }}
PREFECT_API_KEY: ${{ secrets.ACC_TEST_PREFECT_API_KEY }}
PREFECT_CLOUD_ACCOUNT_ID: ${{ secrets.ACC_TEST_PREFECT_CLOUD_ACCOUNT_ID }}