Skip to content

Commit fa37697

Browse files
authored
Merge pull request #1197 from PokeAPI/compose-test
Test compose in CI
2 parents 6628b10 + e8c351e commit fa37697

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/docker-k8s.yml

Lines changed: 14 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,16 @@ 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+
- name: Build dev environment
108+
run: |
109+
docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d
110+
sleep 30
111+
- name: Assert containers running
112+
run: |
113+
last_command=$(docker ps | grep 'pokeapi-' | wc -l)
114+
test "$last_command" -eq 5

0 commit comments

Comments
 (0)