Skip to content

Commit 51ca49b

Browse files
committed
test: compose
1 parent 6628b10 commit 51ca49b

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/docker-k8s.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test Docker and k8s
1+
name: Test Docker, Compose and k8s
22

33
on:
44
pull_request:
@@ -99,3 +99,18 @@ jobs:
9999
test "$last_command" -eq 1
100100
- name: Get GQL output
101101
run: kubectl logs jobs/load-graphql
102+
compose:
103+
runs-on: ubuntu-latest
104+
steps:
105+
- name: Checkout
106+
uses: actions/checkout@v4
107+
with:
108+
submodules: recursive
109+
- name: Build dev environment
110+
run: |
111+
docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d
112+
sleep 30
113+
- name: Assert containers running
114+
run: |
115+
last_command=$(docker ps | grep 'pokeapi-' | wc -l)
116+
test "$last_command" -eq 5

0 commit comments

Comments
 (0)