-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration tests workflow for self hosted
- Loading branch information
1 parent
0eed734
commit d709b5a
Showing
3 changed files
with
52 additions
and
3 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,43 @@ | ||
name: self-hosted-integration | ||
on: | ||
pull_request: | ||
paths: | ||
- pkg/** | ||
- integration/self_hosted/** | ||
- main.go | ||
- go.mod | ||
schedule: | ||
- cron: 1 11 * * 0 | ||
|
||
jobs: | ||
integration: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: /usr/src/app/integration/self_hosted | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Docker Compose Up | ||
working-directory: /usr/src/app | ||
run: docker compose up --build -d materialized materialized_init provider redpanda mysql postgres localstack | ||
|
||
- name: Terraform Init | ||
run: | | ||
docker exec provider terraform init | ||
- name: Terraform Apply | ||
run: | | ||
docker exec provider terraform apply -auto-approve -compact-warnings | ||
- name: Terraform Plan | ||
run: | | ||
docker exec provider terraform plan -detailed-exitcode | ||
- name: Terraform Destroy | ||
run: | | ||
docker exec provider terraform destroy -auto-approve -compact-warnings | ||
- name: Docker Compose Down | ||
working-directory: /usr/src/app | ||
run: docker compose down |
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
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