.github/workflows/tests.yml
name: Tests
on: ['push', 'pull_request']
jobs:
ci:
runs-on: 'ubuntu-latest'
strategy:
matrix:
php: ['7.2', '7.3', '7.4', '8.0']
name: PHP ${{ matrix.php }} - 'ubuntu-latest' - 'prefer-stable'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
extensions: gd, pcov
coverage: none
- name: Setup Problem Matches
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install PHP dependencies
run: composer update --'prefer-stable' --no-interaction --no-progress
- name: Unit Tests
run: composer test