General maintenance. #77
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: Unit Tests | |
on: | |
- push | |
- fork | |
- pull_request | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
name: "Running unit tests for PHP ${{ matrix.php-version }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ['8.0', '8.1', '8.2-rc'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache Composer dependencies | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/composer-cache | |
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: composer:v2 | |
- run: composer install --ignore-platform-reqs | |
shell: bash | |
- run: composer test | |
shell: bash |