-
Notifications
You must be signed in to change notification settings - Fork 17
54 lines (50 loc) · 1.4 KB
/
acceptance-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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 }}