Commit f22075f5 authored by Smolevich's avatar Smolevich

Update ci configuration

parent 002a9ed4
...@@ -20,6 +20,14 @@ jobs: ...@@ -20,6 +20,14 @@ jobs:
run: | run: |
docker version docker version
docker-compose 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 - name: Build docker images
run: | run: |
docker-compose build --build-arg PHP_VERSION=${{ matrix.php }} docker-compose build --build-arg PHP_VERSION=${{ matrix.php }}
...@@ -28,9 +36,16 @@ jobs: ...@@ -28,9 +36,16 @@ jobs:
docker-compose run --rm tests composer install --no-interaction docker-compose run --rm tests composer install --no-interaction
- name: Generating code coverage - name: Generating code coverage
run: | run: |
docker-compose run --rm tests ./vendor/bin/phpunit --coverage-php ./coverage.cov docker-compose run --rm tests mkdir -p build/logs
- name: Coveralls Parallel docker-compose run --rm tests ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
uses: coverallsapp/github-action@master - name: Send coveralls
with: run: |
github-token: ${{ secrets.github_token }} docker-compose run --rm tests mkdir -p build/logs
path-to-lcov: ./coverage.cov 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