Commit f08f4e98 authored by Smolevich's avatar Smolevich

Update ci configuration

parent b0e7e0ad
...@@ -12,6 +12,20 @@ jobs: ...@@ -12,6 +12,20 @@ jobs:
strategy: strategy:
matrix: matrix:
php: [7.1, 7.2, 7.3] php: [7.1, 7.2, 7.3]
services:
mongo:
image: mongo
ports:
- 27017:27017
mysql:
image: mysql:5.7
ports:
- 3306:3306
env:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: 'unittest'
MYSQL_ROOT_PASSWORD:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Show php version - name: Show php version
...@@ -30,16 +44,19 @@ jobs: ...@@ -30,16 +44,19 @@ jobs:
DEBUG: ${{secrets.DEBUG}} DEBUG: ${{secrets.DEBUG}}
- name: Install dependencies - name: Install dependencies
run: | run: |
docker-compose run --rm tests composer install --no-interaction composer install --no-interaction
- name: Generating code coverage - name: Generating code coverage
run: | run: |
mkdir -p build/logs mkdir -p build/logs
docker-compose run --rm tests ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
chmod -R 0777 build/logs env:
MONGO_HOST: 0.0.0.0
MYSQL_HOST: 0.0.0.0
- name: Send coveralls - name: Send coveralls
run: | run: |
ls -alt ls -alt
composer global require cedx/coveralls composer global require cedx/coveralls
export PATH="$PATH:~/.composer/vendor/bin/"
coveralls build/logs/clover.xml coveralls build/logs/clover.xml
env: env:
COVERALLS_RUN_LOCALLY: 1 COVERALLS_RUN_LOCALLY: 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment