Merge pull request #2 from bdumitrua/1.x #7
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: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- '1.x' | |
push: | |
branches: | |
- '1.x' | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
tools: composer:v2 | |
- uses: ramsey/composer-install@v3 | |
with: | |
composer-options: --optimize-autoloader | |
- name: Composer validate | |
run: composer validate --strict --no-check-publish | |
- name: Composer audit | |
run: composer audit | |
- name: Composer normalize | |
run: composer normalize --diff --dry-run | |
- name: Lint PHP files | |
uses: overtrue/phplint@main | |
with: | |
path: . | |
options: --exclude=vendor | |
- name: Php cs fixer | |
run: composer phpcs | |
- name: Rector | |
run: composer rector | |
- name: Psalm | |
run: composer psalm |