Merge pull request #5 from denisyukphp/5.0.x #33
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: 'CI' | |
on: | |
push: | |
paths-ignore: | |
- 'build/**' | |
- 'docs/**' | |
- '.editorconfig' | |
- '.gitattributes' | |
- 'LICENSE' | |
- 'README.md' | |
pull_request: | |
paths-ignore: | |
- 'build/**' | |
- 'docs/**' | |
- '.editorconfig' | |
- '.gitattributes' | |
- 'LICENSE' | |
- 'README.md' | |
jobs: | |
parallel-lint: | |
name: 'ParallelLint' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
coverage: none | |
- name: Install dependencies | |
uses: ramsey/composer-install@v2 | |
- name: Run ParallelLint | |
run: composer parallel-lint -- --no-progress --ignore-fails | |
psalm: | |
name: 'Psalm' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
coverage: none | |
- name: Install dependencies | |
uses: ramsey/composer-install@v2 | |
- name: Run Psalm | |
run: composer psalm -- --show-info=false --no-progress --no-suggestions --no-cache | |
php-cs-fixer: | |
name: 'PHPCsFixer' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
coverage: none | |
- name: Install dependencies | |
uses: ramsey/composer-install@v2 | |
- name: Run PHPCsFixer | |
run: composer php-cs-fixer:diff -- --no-interaction --using-cache=no | |
phpunit: | |
name: 'PHPUnit' | |
needs: ['parallel-lint', 'psalm', 'php-cs-fixer'] | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
fail-fast: false | |
matrix: | |
operating-system: | |
- 'ubuntu-latest' | |
- 'windows-latest' | |
php-version: | |
- '8.0' | |
- '8.1' | |
- '8.2' | |
composer-dependency: | |
- 'lowest' | |
- 'highest' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
- name: Install dependencies | |
uses: ramsey/composer-install@v2 | |
with: | |
dependency-versions: ${{ matrix.composer-dependency }} | |
- name: Run PHPUnit | |
run: composer phpunit -- --no-interaction --do-not-cache-result |