Support self-hosted instances #9
Workflow file for this run
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
name: integration | |
on: | |
pull_request: | |
paths: | |
- pkg/** | |
- integration/self_hosted/** | |
- main.go | |
- go.mod | |
schedule: | |
- cron: 1 11 * * 0 | |
jobs: | |
self-hosted: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker Compose Up | |
run: docker compose up --build -d materialized materialized_init redpanda postgres localstack mysql provider | |
- name: Terraform Init | |
run: | | |
docker exec provider sh -c "cd self_hosted && terraform init" | |
- name: Terraform Apply | |
run: | | |
docker exec provider sh -c "cd self_hosted && terraform apply -auto-approve -compact-warnings" | |
- name: Terraform Plan | |
run: | | |
docker exec provider sh -c "cd self_hosted && terraform plan -detailed-exitcode" | |
- name: Terraform Destroy | |
run: | | |
docker exec provider sh -c "cd self_hosted && terraform destroy -auto-approve -compact-warnings" | |
- name: Docker Compose Down | |
run: docker compose down |