Add bref:tinker Command #166
Workflow file for this run
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
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow | |
| name: Tests | |
| on: | |
| push: | |
| branches: ['master'] | |
| pull_request: | |
| branches: ['*'] | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.ref }}" | |
| cancel-in-progress: true | |
| jobs: | |
| syntax_errors: | |
| name: Syntax errors | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.0" | |
| coverage: none | |
| - name: Install dependencies | |
| uses: ramsey/composer-install@v2 | |
| - name: Check source code for syntax errors | |
| run: "composer exec -- parallel-lint src/ config/ stubs/" | |
| tests: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: [ '8.1', '8.2', '8.3', '8.4' ] | |
| dependencies: [ '' ] | |
| include: | |
| - php: '8.1' | |
| dependencies: '--prefer-lowest' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| - name: Install dependencies | |
| uses: ramsey/composer-install@v2 | |
| with: | |
| dependency-versions: "${{ matrix.dependencies }}" | |
| - name: PHPUnit | |
| run: vendor/bin/phpunit tests | |
| static_analysis: | |
| name: Static Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.3" | |
| coverage: none | |
| - name: Validate Composer configuration | |
| run: "composer validate --no-interaction --strict" | |
| - name: Install dependencies | |
| uses: ramsey/composer-install@v2 | |
| - name: Check PSR-4 mapping | |
| run: "composer dump-autoload --no-interaction --optimize --strict-psr" | |
| - name: PHPStan | |
| run: "vendor/bin/phpstan analyze src/ stubs/" | |
| coding_standards: | |
| name: Coding Standards | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.0" | |
| coverage: none | |
| - name: "Check adherence to EditorConfig" | |
| uses: "greut/eclint-action@v0" | |
| - name: Install dependencies | |
| uses: ramsey/composer-install@v2 | |
| - name: PHPCS | |
| run: "composer exec -- phpcs -s src/ stubs/" |