Skip to content

Commit

Permalink
Merge pull request #498 from DefangLabs/lio-test-up-in-ci
Browse files Browse the repository at this point in the history
Update Playground test to use "compose up"
  • Loading branch information
lionello authored Jun 25, 2024
2 parents f235ae5 + d996888 commit b940a9c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
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

0 comments on commit b940a9c

Please sign in to comment.