Update addIndex method to automatically execute an analyze to refresh… #56
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: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
env: | |
COMPOSER_UPDATE_FLAGS: "--no-interaction --no-progress --prefer-dist " | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
name: Test | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- php: 8.1 | |
composer_update_flags: --prefer-lowest | |
- php: 8.1 | |
- php: 8.2 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php }}" | |
coverage: none | |
- name: Composer dependencies | |
run: COMPOSER_UPDATE_FLAGS+="${{matrix.composer_update_flags}}" make vendor | |
- name: Lint | |
run: find . -name '*.php' -path './src/*' | parallel -j 4 php -l {} | |
- name: PHPUnit | |
run: make phpunit | |
static-analysis: | |
runs-on: ubuntu-latest | |
name: Static analysis | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.2" | |
- name: Composer dependencies | |
run: make vendor | |
- name: Composer validate | |
run: make composer-validate | |
- name: PHPStan | |
run: make phpstan | |
- name: PHP CS Fixer | |
run: make php-cs-fixer-check |