-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a CI workflow that will run the Terraform sweepers each night.
- Loading branch information
1 parent
3c39794
commit 930f84c
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 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: | ||
permissions: | ||
contents: read | ||
name: Run Sweepers | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
- name: Install gotestsum | ||
run: go install gotest.tools/gotestsum@latest | ||
- name: Run sweeper tests | ||
run: make 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 }} |
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