Bump phpunit/phpunit from 9.6.13 to 9.6.15 #74
Workflow file for this run
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: phpunit | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# https://github.com/shivammathur/setup-php#tada-php-support | |
php-versions: | |
- '7.3' | |
- '7.4' | |
- '8.0' | |
- '8.1' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Compose setup | |
run: | | |
composer validate | |
composer check-platform-reqs | |
composer dump-autoload | |
composer install --no-interaction | |
- name: Test the code | |
run: composer run coverage | |
- name: Upload coverage results to Coveralls | |
if: matrix.php-versions == '8.0' | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
composer global require php-coveralls/php-coveralls | |
php-coveralls --coverage_clover=.coverage.xml --json_path=/tmp/coverage.json -v |