Skip to content

Commit bb0b556

Browse files
author
Daniel Mellum
committed
revert to running all tests in docker containers
1 parent 2f0c32c commit bb0b556

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

.github/workflows/docker.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: TestInDocker
1+
name: RunPhpUnitInDocker
22

33
on:
44
push:
@@ -10,11 +10,9 @@ on:
1010
- main
1111

1212
jobs:
13-
run-test-image:
13+
docker:
14+
timeout-minutes: 15
1415
runs-on: ubuntu-latest
15-
timeout-minutes: 5
16-
container:
17-
image: ghcr.io/danielme85/lltdb-testbench:latest
1816

1917
steps:
2018
- name: Checkout
@@ -23,20 +21,8 @@ jobs:
2321
- name: Start containers
2422
run: docker-compose up -d mariadb mongo
2523

26-
- name: Install composer packages
27-
run: cd /var/testing && composer install --no-interaction
28-
29-
- name: Run tests
30-
run: ">
31-
cd /var/testing && dockerize -wait tcp://mariadb:3306 -timeout 1m
32-
&& ./vendor/bin/phpunit --coverage-clover ./coverage.xml
33-
"
34-
35-
- name: Upload test coverage
36-
uses: codecov/codecov-action@v3
37-
with:
38-
files: ./coverage.xml
24+
- name: Start test container
25+
run: docker-compose up php8
3926

4027
- name: Cleanup containers
4128
run: docker-compose down
42-

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: "2.4"
33
services:
44

55
mariadb:
6-
image: mariadb:10.5
6+
image: mariadb:latest
77
container_name: laravel-log-to-db-mariadb
88
networks:
99
- laravel-log-to-db-testing

0 commit comments

Comments
 (0)