Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Playground test to use "compose up" #498

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,16 @@ jobs:
run: go run ./cmd/cli login --debug
working-directory: src

- name: Add dummy secret
run: echo blah | go run ./cmd/cli secret set -n dummy -f tests/testproj/compose.yaml --debug
- name: Add dummy config
run: echo blah | go run ./cmd/cli config set -n dummy -f tests/sanity/compose.yaml --debug
working-directory: src

- name: Run sanity tests
run: go run ./cmd/cli compose start -f tests/testproj/compose.yaml --debug
- name: Run sanity tests UP
run: go run ./cmd/cli compose up -f tests/sanity/compose.yaml --debug
working-directory: src

- name: Run sanity tests DOWN
run: go run ./cmd/cli compose stop -f tests/sanity/compose.yaml --debug
working-directory: src

go-release:
Expand Down
13 changes: 13 additions & 0 deletions src/tests/sanity/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
nginx:
restart: unless-stopped
image: nginx
environment:
- dummy
ports:
- target: 80
mode: ingress
deploy:
resources:
reservations:
memory: 256M