Skip to content

Commit

Permalink
Merge pull request #1197 from PokeAPI/compose-test
Browse files Browse the repository at this point in the history
Test compose in CI
  • Loading branch information
Naramsim authored Jan 22, 2025
2 parents 6628b10 + e8c351e commit fa37697
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/docker-k8s.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test Docker and k8s
name: Test Docker, Compose and k8s

on:
pull_request:
Expand Down Expand Up @@ -99,3 +99,16 @@ jobs:
test "$last_command" -eq 1
- name: Get GQL output
run: kubectl logs jobs/load-graphql
compose:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build dev environment
run: |
docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d
sleep 30
- name: Assert containers running
run: |
last_command=$(docker ps | grep 'pokeapi-' | wc -l)
test "$last_command" -eq 5

0 comments on commit fa37697

Please sign in to comment.