-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (31 loc) · 1.09 KB
/
integration-self-hosted.yml
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
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@v4
- name: Docker Compose Up
run: docker compose up --build -d materialized materialized_init redpanda postgres localstack mysql provider
- name: Terraform Init
run: |
docker exec --workdir /usr/src/app/integration/self_hosted provider terraform init
- name: Terraform Apply
run: |
docker exec --workdir /usr/src/app/integration/self_hosted provider terraform apply -auto-approve -compact-warnings
- name: Terraform Plan
run: |
docker exec --workdir /usr/src/app/integration/self_hosted provider terraform plan -detailed-exitcode
- name: Terraform Destroy
run: |
docker exec --workdir /usr/src/app/integration/self_hosted provider terraform destroy -auto-approve -compact-warnings
- name: Docker Compose Down
run: docker compose down