Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,39 @@ on:
branches:
- main

permissions:
contents: read

# A newer push to the same branch or pull request makes the older run moot.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
COMPOSER_CACHE_DIR: /tmp/composer-cache

jobs:
rector_analysis:
name: Rector analysis
runs-on: ubuntu-latest
env:
PHP_VERSION: 8.4
steps:
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
php-version: 8.4
php-version: ${{ env.PHP_VERSION }}
extensions: json, mbstring, pdo, curl, pdo_sqlite
coverage: none
tools: symfony-cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: ${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-${{ env.PHP_VERSION }}-${{ hashFiles('**/composer.json') }}
- run: composer install --no-progress --no-interaction

- run: vendor/bin/rector process -n --no-progress-bar --ansi
Expand All @@ -38,7 +47,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: [ '8.2', '8.3', '8.4' ]
php-version: [ '8.2', '8.3', '8.4', '8.5' ]
actions:
- name: Coding Standard
# tip: add "--ansi" to commands in CI to make them full of colors
Expand All @@ -62,7 +71,6 @@ jobs:
php-version: ${{ matrix.php-version }}
extensions: json, mbstring, pdo, curl, pdo_sqlite
coverage: none
tools: symfony-cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down