Fix tests and upgrade supported php version to 8.1 #32
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: Build | |
on: | |
push: | |
paths-ignore: ['*.md'] | |
pull_request: | |
branches: [master] | |
paths-ignore: ['*.md'] | |
jobs: | |
test: | |
name: Test (PHP ${{ matrix.php }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: [8.1, 8.2, 8.3] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: json | |
coverage: none | |
- name: Install composer dependencies | |
run: composer install --prefer-dist --no-interaction --no-progress | |
- name: Run the test suite | |
run: vendor/bin/phpunit |