Skip to content

Commit

Permalink
feat(ci): add test for service restart
Browse files Browse the repository at this point in the history
This is different than fresh start as the volumes persist, see WeblateOrg#2579
  • Loading branch information
nijel committed Aug 26, 2024
1 parent afa5c4c commit 415b4f5
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/bleeding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,18 @@ jobs:
run: |
cd docker-compose
./test-logs
- name: Stop Weblate service
run: |
cd docker-compose
docker compose stop weblate
- name: Start Weblate service
run: |
cd docker-compose
docker compose start weblate
- name: Check service is running
run: |
cd docker-compose
./test-online
- name: Shutdown service
run: |
cd docker-compose
Expand Down Expand Up @@ -293,6 +305,18 @@ jobs:
run: |
cd docker-compose
./test-logs
- name: Stop Weblate service
run: |
cd docker-compose
docker compose stop weblate
- name: Start Weblate service
run: |
cd docker-compose
docker compose start weblate
- name: Check service is running
run: |
cd docker-compose
./test-online
- name: Shutdown service
run: |
cd docker-compose
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,18 @@ jobs:
run: |
cd docker-compose
./test-logs
- name: Stop Weblate service
run: |
cd docker-compose
docker compose stop weblate
- name: Start Weblate service
run: |
cd docker-compose
docker compose start weblate
- name: Check service is running
run: |
cd docker-compose
./test-online
- name: Shutdown service
run: |
cd docker-compose
Expand Down Expand Up @@ -263,6 +275,18 @@ jobs:
run: |
cd docker-compose
./test-logs
- name: Stop Weblate service
run: |
cd docker-compose
docker compose stop weblate
- name: Start Weblate service
run: |
cd docker-compose
docker compose start weblate
- name: Check service is running
run: |
cd docker-compose
./test-online
- name: Shutdown service
run: |
cd docker-compose
Expand Down

0 comments on commit 415b4f5

Please sign in to comment.