Upgrade dependencies to latest versions available for PHP 8.1 (#108) #186
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: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
PHPUnit: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [8.1, 8.2, 8.3] | |
steps: | |
- name: Configure PHP version | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
- uses: actions/checkout@v4 | |
- name: Cache Composer Dependencies | |
uses: actions/cache@v3 | |
with: | |
path: vendor/ | |
key: composer-${{ matrix.php }}-${{ hashFiles('composer.*') }} | |
restore-keys: | | |
composer-${{ matrix.php }}-${{ github.ref }} | |
composer-${{ matrix.php }}- | |
- run: | | |
composer update --no-interaction --no-scripts --no-progress | |
composer show | |
- run: vendor/bin/phpunit |