Increase Lock's TTL and refresh window (#126) #176
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
| name: PHP | |
| on: | |
| pull_request: | |
| branches: | |
| - '3.9' | |
| - '3.10' | |
| push: null | |
| permissions: {} | |
| concurrency: | |
| group: '${{ github.workflow }}-${{ github.ref }}' | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| name: '${{ matrix.php }} / Symfony ${{ matrix.symfony_version }} / ${{ matrix.dependencies }} / ${{ matrix.os }}' | |
| strategy: | |
| matrix: | |
| os: | |
| - 'ubuntu-22.04' | |
| php: | |
| - '8.2' | |
| - '8.3' | |
| - '8.4' | |
| - '8.5' | |
| dependencies: | |
| - 'lowest' | |
| - 'highest' | |
| symfony_version: | |
| - '~6.4.0' | |
| - '~7.4.0' | |
| - '~8.0.0' | |
| include: | |
| - os: 'windows-2022' | |
| php: '8.2' | |
| dependencies: 'highest' | |
| symfony_version: '~6.4.0' | |
| exclude: | |
| - os: 'ubuntu-22.04' | |
| php: '8.2' | |
| dependencies: 'lowest' | |
| symfony_version: '~8.0.0' | |
| - os: 'ubuntu-22.04' | |
| php: '8.2' | |
| dependencies: 'highest' | |
| symfony_version: '~8.0.0' | |
| - os: 'ubuntu-22.04' | |
| php: '8.3' | |
| dependencies: 'lowest' | |
| symfony_version: '~8.0.0' | |
| - os: 'ubuntu-22.04' | |
| php: '8.3' | |
| dependencies: 'highest' | |
| symfony_version: '~8.0.0' | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: none | |
| - id: symfony_packages | |
| shell: bash | |
| run: | | |
| jq --raw-output '"with_string=" + (["--with=" + ((."require" + ."require-dev") | keys[] | select(contains("symfony/"))) + ":${{ matrix.symfony_version }}"] | join(" "))' composer.json \ | |
| >>"$GITHUB_OUTPUT" | |
| - uses: ramsey/composer-install@v3 | |
| with: | |
| dependency-versions: ${{ matrix.dependencies }} | |
| composer-options: ${{ steps.symfony_packages.outputs.with_string }} | |
| - run: composer exec -- phpunit --testsuite EndToEnd | |
| - run: composer exec -- phpunit --testsuite Integration | |
| - run: composer exec -- phpunit --testsuite Unit | |
| static_analysis: | |
| name: Static analysis | |
| strategy: | |
| matrix: | |
| include: | |
| - php: '8.2' | |
| symfony_version: '~6.4.0' | |
| dependencies: 'highest' | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: none | |
| - id: symfony_packages | |
| shell: bash | |
| run: | | |
| jq --raw-output '"with_string=" + (["--with=" + ((."require" + ."require-dev") | keys[] | select(contains("symfony/"))) + ":${{ matrix.symfony_version }}"] | join(" "))' composer.json \ | |
| >>"$GITHUB_OUTPUT" | |
| - uses: ramsey/composer-install@v3 | |
| with: | |
| dependency-versions: ${{ matrix.dependencies }} | |
| composer-options: ${{ steps.symfony_packages.outputs.with_string }} | |
| - run: composer normalize --dry-run | |
| - uses: actions/cache@v4 | |
| with: | |
| path: .php-cs-fixer.cache | |
| key: php-cs-fixer-cache | |
| - uses: actions/cache@v4 | |
| with: | |
| path: /tmp/phpstan | |
| key: phpstan-cache | |
| - run: composer run crunz:analyze |