Skip to content

Commit

Permalink
Update github workflows, docker compose upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
xbgmsharp committed Sep 4, 2024
1 parent 0a80f2e commit 5dda28d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/grafana-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: cp .env.example .env

- name: Pull Docker images
run: docker-compose pull db app
run: docker compose pull db app

- name: Run PostgSail Grafana test
# Environment variables
Expand All @@ -40,15 +40,16 @@ jobs:
run: |
set -eu
source .env
docker-compose stop || true
docker-compose rm || true
docker-compose up -d db && sleep 30
docker-compose ps -a
docker compose stop || true
docker compose rm || true
docker compose up -d db && sleep 30
docker compose ps -a
echo "Test PostgSail Grafana Unit Test"
docker-compose up -d app && sleep 5
docker-compose ps -a
docker compose up -d app && sleep 5
docker compose ps -a
curl http://localhost:3001/
docker compose exec -i db psql -Uusername signalk -c "select public.cron_process_grafana_fn();"
- name: Show the logs
if: always()
run: |
docker-compose logs
docker compose logs

0 comments on commit 5dda28d

Please sign in to comment.