fix(lint): condition #5
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
| name: Check PHP V2 | ||
|
Check failure on line 1 in .github/workflows/reusable-php-checks-v2.yaml
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| working-directory: | ||
| required: false | ||
| default: packages/core-v2 | ||
| type: string | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| working-directory: ${{ inputs.working-directory }} | ||
| jobs: | ||
| security: | ||
| name: Security | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Set Git To Use LF | ||
| shell: bash | ||
| run: | | ||
| git config --global core.autocrlf false | ||
| git config --global core.eol lf | ||
| - uses: rees46/workflow/.github/actions/php/prepare@master | ||
| - name: Composer Audit | ||
| run: composer audit | ||
| - name: Security Advisories | ||
| run: composer require --dev roave/security-advisories:dev-latest | ||
| phpstan: | ||
| name: Linter | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Set Git To Use LF | ||
| shell: bash | ||
| run: | | ||
| git config --global core.autocrlf false | ||
| git config --global core.eol lf | ||
| - uses: rees46/workflow/.github/actions/php/prepare@master | ||
| - name: Static Analysis | ||
| run: composer linter:check -- --error-format=github --ansi | ||
| php-cs-fixer: | ||
| name: Code Style | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Set Git To Use LF | ||
| shell: bash | ||
| run: | | ||
| git config --global core.autocrlf false | ||
| git config --global core.eol lf | ||
| - uses: rees46/workflow/.github/actions/php/prepare@master | ||
| - name: Check Code Style | ||
| run: composer phpcs:check | ||
| tests: | ||
| name: Tests | ||
| runs-on: ubuntu-latest | ||
| services: | ||
| rabbit: | ||
| image: rabbitmq:management-alpine | ||
| env: | ||
| RABBITMQ_DEFAULT_USER: guest | ||
| RABBITMQ_DEFAULT_PASS: guest | ||
| ports: | ||
| - 5672:5672 | ||
| postgres: | ||
| image: ghcr.io/rees46/postgres-migrated:latest | ||
| ports: | ||
| - 5432:5432 | ||
| credentials: | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
| username: ${{ github.repository_owner }} | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Set Git To Use LF | ||
| shell: bash | ||
| run: | | ||
| git config --global core.autocrlf false | ||
| git config --global core.eol lf | ||
| - uses: rees46/workflow/.github/actions/php/prepare@master | ||
| - name: Symfony Container Tests | ||
| run: composer test:container | ||
| - name: Unit Tests | ||
| run: composer test:unit | ||
| - name: Integration Tests | ||
| run: composer test:integration | ||
| - name: Functional Tests | ||
| run: composer test:feature | ||