File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 12
12
strategy :
13
13
matrix :
14
14
php : [7.1, 7.2, 7.3]
15
+ services :
16
+ mongo :
17
+ image : mongo
18
+ ports :
19
+ - 27017:27017
20
+ mysql :
21
+ image : mysql:5.7
22
+ ports :
23
+ - 3306:3306
24
+ env :
25
+ MYSQL_ALLOW_EMPTY_PASSWORD : ' yes'
26
+ MYSQL_DATABASE : ' unittest'
27
+ MYSQL_ROOT_PASSWORD :
28
+
15
29
steps :
16
30
- uses : actions/checkout@v1
17
31
- name : Show php version
@@ -30,16 +44,19 @@ jobs:
30
44
DEBUG : ${{secrets.DEBUG}}
31
45
- name : Install dependencies
32
46
run : |
33
- docker-compose run --rm tests composer install --no-interaction
47
+ composer install --no-interaction
34
48
- name : Generating code coverage
35
49
run : |
36
50
mkdir -p build/logs
37
- docker-compose run --rm tests ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
38
- chmod -R 0777 build/logs
51
+ ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
52
+ env :
53
+ MONGO_HOST : 0.0.0.0
54
+ MYSQL_HOST : 0.0.0.0
39
55
- name : Send coveralls
40
56
run : |
41
57
ls -alt
42
58
composer global require cedx/coveralls
59
+ export PATH="$PATH:~/.composer/vendor/bin/"
43
60
coveralls build/logs/clover.xml
44
61
env :
45
62
COVERALLS_RUN_LOCALLY : 1
You can’t perform that action at this time.
0 commit comments