chore(deps): update all non-major dependencies #567
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: | |
pull_request: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: 'PHP Lint ${{ matrix.php-version }}' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Run lint | |
run: find ./src ./tests -type f -name "*.php" -print0 | xargs -0 -P10 -n1 -- php -l | |
php_cs_fixer: | |
name: 'PHP CS Fixer' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
- name: Install dependencies | |
run: composer update --no-interaction --no-progress --ansi | |
- name: Run coding standards check | |
run: composer run cs-fix-dry | |
phpstan: | |
name: 'PHPStan' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.4' | |
- name: Install dependencies | |
run: composer update --no-interaction --no-progress --ansi | |
- name: Run static analysis | |
run: composer run analyze | |
typos: | |
name: "Check for typos" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Check for typos" | |
uses: "crate-ci/[email protected]" | |
unit_tests: | |
name: 'Unit Test ${{ matrix.php-version }}, ${{ matrix.dependency-version }}' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] | |
dependency-version: [prefer-lowest, prefer-stable] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP ${{ matrix.php-version }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: composer:v2 | |
coverage: none | |
- name: Install dependencies | |
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi | |
- name: Run unit tests | |
run: composer run test |