Skip to content

Commit f1066b7

Browse files
committed
Update ci configuration
1 parent 96c4618 commit f1066b7

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/build-ci.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ jobs:
1212
strategy:
1313
matrix:
1414
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+
1529
steps:
1630
- uses: actions/checkout@v1
1731
- name: Show php version
@@ -30,16 +44,19 @@ jobs:
3044
DEBUG: ${{secrets.DEBUG}}
3145
- name: Install dependencies
3246
run: |
33-
docker-compose run --rm tests composer install --no-interaction
47+
composer install --no-interaction
3448
- name: Generating code coverage
3549
run: |
3650
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
3955
- name: Send coveralls
4056
run: |
4157
ls -alt
4258
composer global require cedx/coveralls
59+
export PATH="$PATH:~/.composer/vendor/bin/"
4360
coveralls build/logs/clover.xml
4461
env:
4562
COVERALLS_RUN_LOCALLY: 1

0 commit comments

Comments
 (0)