Skip to content

Commit

Permalink
Merge pull request #225 from alrayyes/feat/enable-accp-testing
Browse files Browse the repository at this point in the history
ci: implement acceptance testing in the pipeline
  • Loading branch information
alrayyes authored Dec 18, 2024
2 parents 0f97476 + d27d367 commit e8b536c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ jobs:
- "1.10.*"
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- run: cp .env.dist docker/.env
- uses: hoverkraft-tech/[email protected]
with:
compose-file: "docker/docker-compose-acc.yml"
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: "go.mod"
Expand All @@ -77,6 +81,6 @@ jobs:
terraform_wrapper: false
- run: go mod download
- env:
TF_ACC: ""
TF_ACC: "true"
run: go test -v -cover ./internal/provider/
timeout-minutes: 10
33 changes: 33 additions & 0 deletions docker/docker-compose-acc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
services:
prism_public_cloud:
container_name: prism_public_cloud
build:
dockerfile: prism/Dockerfile
command: >
mock -p 4010 --host 0.0.0.0
${PUBLIC_CLOUD_API_SPEC_URL}
env_file:
- path: .env
extra_hosts:
- "host.docker.internal:host-gateway"
prism_dedicated_server:
container_name: prism_dedicated_server
build:
dockerfile: prism/Dockerfile
command: >
mock -p 4010 --host 0.0.0.0
${DEDICATED_SERVER_API_SPEC_URL}
env_file:
- path: .env
extra_hosts:
- "host.docker.internal:host-gateway"
prism-proxy:
build:
dockerfile: caddy/Dockerfile
volumes:
- ./caddy/prism/Caddyfile:/etc/caddy/Caddyfile
ports:
- "8080:80"
depends_on:
- prism_public_cloud
- prism_dedicated_server

0 comments on commit e8b536c

Please sign in to comment.