Run tests #1042
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: Run tests | |
on: | |
push: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
php-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: [8.1, 8.0, 7.4, 7.3] | |
laravel: [9.*, 8.*] | |
include: | |
- laravel: 9.* | |
testbench: 7.* | |
- laravel: 8.* | |
testbench: 6.* | |
name: P${{ matrix.php }} - L${{ matrix.laravel }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
git config --global user.email "[email protected]"; git config --global user.name "Antonio Ribeiro" | |
- name: Install dependencies | |
run: | | |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --dev --no-interaction --no-suggest | |
- name: Execute tests | |
run: vendor/bin/phpunit | |
# after_script: | |
# - | | |
# if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' && "$TRAVIS_PHP_VERSION" != '7.0' ]]; then | |
# wget https://scrutinizer-ci.com/ocular.phar | |
# php ocular.phar code-coverage:upload --format=php-clover coverage.clover | |
# fi | |
# --coverage-clover=coverage.clover |