-
Notifications
You must be signed in to change notification settings - Fork 22
40 lines (37 loc) · 1.26 KB
/
acceptance-tests-sweepers.yaml
File metadata and controls
40 lines (37 loc) · 1.26 KB
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
# This workflow runs the Terraform acceptance tests sweepers every day.
name: Acceptance Tests - Sweepers
"on":
# Run at 7 AM UTC every day (2 AM EST)
schedule:
- cron: '0 7 * * *'
# Run manually
workflow_dispatch: {}
permissions: {}
jobs:
sweepers:
if: github.repository == 'prefecthq/terraform-provider-prefect'
permissions:
contents: read
name: Run Sweepers
environment: 'Acceptance Tests (main)'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
# This action installs go and caches downloaded modules, so we favor
# this over using the `mise-action` to install Go.
- name: Set up Golang
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Install tool dependencies
uses: jdx/mise-action@v3
with:
install_args: terraform
- name: Disable mise auto-install for task runs
run: mise settings set task_run_auto_install false
- name: Run sweeper tests
run: mise run testacc-sweepers
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 }}