Skip to content

Commit

Permalink
Make acceptance tests something manually kicked off
Browse files Browse the repository at this point in the history
  • Loading branch information
twelsh-aw committed Aug 23, 2024
1 parent 6de2fbf commit 03c23de
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 9 deletions.
38 changes: 38 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!---
See what makes a good Pull Request at: https://github.com/docker/terraform-provider-docker/blob/main/CONTRIBUTING.md#making-code-contributions/
--->
### Description
<!---
Please provide a helpful description of what change this pull request will introduce.
--->

### Relations
<!---
If your pull request fully resolves and should automatically close the linked issue, use Closes. Otherwise, use Relates.
For Example:
Relates #0000
or
Closes #0000
--->

Closes #0000

### References
<!---
Optionally, provide any helpful references that may help the reviewer(s).
--->

### Output from Acceptance Testing
<!--
Replace TestAccXXX with a pattern that matches the tests affected by this PR.
For more information on the `-run` flag, see the `go test` documentation at https://tip.golang.org/cmd/go/#hdr-Testing_flags.
-->

```console
% make testacc TESTS=TestAccXXX

...
```
11 changes: 2 additions & 9 deletions .github/workflows/acctest.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Acceptance Tests

on:
workflow_run:
workflows:
- CI
types:
- completed

workflow_dispatch:
inputs:
terraform-version:
Expand All @@ -20,7 +14,6 @@ jobs:
name: Acceptance Test
runs-on: ubuntu-latest
timeout-minutes: 60
environment: acctest
concurrency: acctest
steps:
- uses: actions/checkout@v4
Expand All @@ -34,13 +27,13 @@ jobs:

- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_version: ${{ inputs.terraform-version || '1.9.*' }}
terraform_version: ${{ inputs.terraform-version }}
terraform_wrapper: false

- run: |
go test ./... -run=TestAcc -v
env:
DOCKER_USERNAME: dockerterraformprovideracctest
DOCKER_USERNAME: "${{ vars.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
TF_ACC: "1"
timeout-minutes: 30

0 comments on commit 03c23de

Please sign in to comment.