Update dependencies #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Start docker 🔧 | |
run: | | |
docker-compose -f docker-compose.yml -f .github/docker-compose.yml up -d | |
- name: Cache multiple paths | |
uses: actions/cache@v2 | |
with: | |
path: | | |
**/vendor | |
key: ${{ runner.os }}-${{ hashFiles('*.lock') }} | |
- name: Install the dependencies 🔧 | |
run: | | |
docker-compose exec -T application composer install --prefer-dist --no-interaction --no-progress | |
docker-compose exec -T application php -d zend_extension=xdebug.so ./bin/phpunit --configuration phpunit.xml.dist --dump-xdebug-filter phpunit-filter.php | |
- name: Execute the tests 🔧 | |
run: | | |
docker-compose exec -T application php -d zend_extension=xdebug.so ./bin/phpunit --prepend phpunit-filter.php --configuration phpunit.xml.dist --colors=never --coverage-clover build/logs/clover.xml | |
- name: Upload results to Coveralls 🚀 | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_SECRET }} | |
run: | | |
docker-compose exec -T application composer global require twinh/php-coveralls --prefer-dist --no-interaction --no-progress | |
docker-compose exec -T -e COVERALLS_REPO_TOKEN="$COVERALLS_REPO_TOKEN" application /home/application/.composer/vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v |