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 2455a42 commit e633491
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 @@ -228,6 +228,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 @@ -313,6 +325,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 @@ -202,6 +202,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 @@ -283,6 +295,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 e633491

Please sign in to comment.