Switch to Php8.1 #43
This file contains hidden or 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: | |
| pull_request: | |
| jobs: | |
| linux_tests: | |
| runs-on: ubuntu-20.04 | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| php: | |
| - '8.1' | |
| - '8.2' | |
| - '8.3' | |
| - '8.4' | |
| name: PHP ${{ matrix.php }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| tools: composer:v2 | |
| coverage: none | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate --strict | |
| - name: Install dependencies | |
| run: composer update --prefer-dist --no-interaction | |
| - name: Run test suite | |
| run: composer run-script test | |
| - name: Run static analysis | |
| run: composer run-script phpstan | |
| - name: Run phpcs analysis | |
| run: composer run-script phpcs |