Commit f22075f5 authored by Smolevich's avatar Smolevich

Update ci configuration

parent 002a9ed4
......@@ -20,6 +20,14 @@ jobs:
run: |
docker version
docker-compose version
- name: Debug if needed
run: |
export DEBUG=${DEBUG:-false}
if [[ "$DEBUG" == "true" ]]; then
env
fi
env:
DEBUG: ${{secrets.DEBUG}}
- name: Build docker images
run: |
docker-compose build --build-arg PHP_VERSION=${{ matrix.php }}
......@@ -28,9 +36,16 @@ jobs:
docker-compose run --rm tests composer install --no-interaction
- name: Generating code coverage
run: |
docker-compose run --rm tests ./vendor/bin/phpunit --coverage-php ./coverage.cov
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: ./coverage.cov
docker-compose run --rm tests mkdir -p build/logs
docker-compose run --rm tests ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: Send coveralls
run: |
docker-compose run --rm tests mkdir -p build/logs
docker-compose run --rm \
-e COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN} \
-e COVERALLS_RUN_LOCALLY=${COVERALLS_RUN_LOCALLY} \
tests \
vendor/bin/php-coveralls -v
env:
COVERALLS_RUN_LOCALLY: ${{secrets.COVERALLS_RUN_LOCALLY}}
COVERALLS_REPO_TOKEN: ${{secrets.COVERALLS_REPO_TOKEN}}
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