feat(automations): API client and data model for request/response #451
Workflow file for this run
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: 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: 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 }} |