Skip to content

Commit 7b77fa9

Browse files
committed
dont boot mysql80 on phpunit82
1 parent 638ef9e commit 7b77fa9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/phpdoc.yml

+4
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ jobs:
3333
with:
3434
path: /tmp/docker-save
3535
key: ${{ runner.os }}-docker-php-build-save-${{ hashFiles('build/Dockerfile.php.common', 'build/Dockerfile.php81') }}
36+
3637
- name: Load cached Docker image
3738
run: docker load -i /tmp/docker-save/snapshot.tar && docker tag app/php-image-cache app/php
39+
if: steps.docker-php-image-cache.outputs.cache-hit == 'true'
3840

3941
- name: Docker boot
4042
env:
43+
DOCKER_BUILDKIT: '1'
44+
COMPOSE_DOCKER_CLI_BUILD: '1'
4145
SERVICES_NAME: "app.php"
4246
run: docker-compose up -d $SERVICES_NAME
4347

.github/workflows/phpunit.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
env:
4141
DOCKER_BUILDKIT: '1'
4242
COMPOSE_DOCKER_CLI_BUILD: '1'
43-
SERVICES_NAME: "app.php mysql80"
43+
SERVICES_NAME: "app.php"
4444
run: docker-compose up --force-recreate -d $SERVICES_NAME
4545
timeout-minutes: 3
4646

4747
- name: Wait for all services to become healthy
48-
run: for SVC in "app.php" "mysql80"; do while [ "\"healthy\"" != "$(docker inspect --format '{{json .State.Health.Status }}' ${SVC})" ];do docker-compose ps && sleep 5; done; done
48+
run: for SVC in "app.php"; do while [ "\"healthy\"" != "$(docker inspect --format '{{json .State.Health.Status }}' ${SVC})" ];do docker-compose ps && sleep 5; done; done
4949
timeout-minutes: 3
5050

5151
- name: Sleep

0 commit comments

Comments
 (0)