updated deps #58
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: Tests | |
on: [push] | |
jobs: | |
cs-check: | |
name: Check Coding Standards | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache composer | |
uses: actions/cache@v3 | |
with: | |
path: ~/.composer/cache/ | |
key: composer-ubuntu-${{ github.sha }} | |
- name: Setup | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.0' | |
extensions: mbstring, fileinfo, json, intl, dom | |
- name: Run composer install | |
run: composer install -n --prefer-dist | |
- name: 'php-cs-fixer check' | |
run: 'vendor/bin/php-cs-fixer fix --dry-run --diff' | |
env: | |
PHP_CS_FIXER_IGNORE_ENV: 1 | |
tests: | |
name: Run tests for PHP ${{ matrix.php-versions }} | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 15 | |
matrix: | |
php-versions: ['8.0', '8.1', '8.2'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache composer | |
uses: actions/cache@v3 | |
with: | |
path: ~/.composer/cache/ | |
key: composer-${{ matrix.php-versions }}-${{ github.sha }} | |
- name: setup | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, fileinfo, json, intl, dom | |
- name: Run composer install | |
run: composer install -n --prefer-dist | |
- name: Run tests | |
run: make test |