File tree Expand file tree Collapse file tree 2 files changed +6
-20
lines changed
Expand file tree Collapse file tree 2 files changed +6
-20
lines changed Original file line number Diff line number Diff line change 1- name : TestInDocker
1+ name : RunPhpUnitInDocker
22
33on :
44 push :
1010 - main
1111
1212jobs :
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
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-
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version: "2.4"
33services :
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
You can’t perform that action at this time.
0 commit comments