Skip to content
Merged
Show file tree
Hide file tree
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
113 changes: 59 additions & 54 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
@@ -1,66 +1,71 @@
name: Code Analysis

on:
pull_request: null
push:
branches:
- main
pull_request: null
push:
branches:
- main

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

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

- run: composer install --no-progress --ansi

- run: vendor/bin/rector process -n --no-progress-bar --ansi
jobs:
rector_analysis:
name: Rector analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

code_analysis:
strategy:
fail-fast: false
matrix:
php-version: ['8.2', '8.3', '8.4']
actions:
-
name: Coding Standard
# tip: add "--ansi" to commands in CI to make them full of colors
run: vendor/bin/ecs check src --ansi
- uses: shivammathur/setup-php@v2
with:
php-version: 8.4
extensions: json, mbstring, pdo, curl, pdo_sqlite
coverage: none
tools: symfony-cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

-
name: Check composer.json and composer.lock
run: composer validate --strict --ansi
- run: vendor/bin/rector process -n --no-progress-bar --ansi

code_analysis:
strategy:
fail-fast: false
matrix:
php-version: [ '8.2', '8.3', '8.4' ]
actions:
- name: Coding Standard
# tip: add "--ansi" to commands in CI to make them full of colors
run: vendor/bin/ecs check src --ansi

name: ${{ matrix.actions.name }} - PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
- name: PHPStan
run: vendor/bin/phpstan analyse --ansi

steps:
- uses: actions/checkout@v4
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
# test the lowest version, to make sure checks pass on it
php-version: ${{ matrix.php-version }}
extensions: json, mbstring, pdo, curl, pdo_sqlite
coverage: none
tools: symfony-cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check composer.json and composer.lock
run: composer validate --strict --ansi

name: ${{ matrix.actions.name }} - PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
# test the lowest version, to make sure checks pass on it
php-version: ${{ matrix.php-version }}
extensions: json, mbstring, pdo, curl, pdo_sqlite
coverage: none
tools: symfony-cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: composer install --no-progress --ansi
- run: composer install --no-progress --ansi

- run: ${{ matrix.actions.run }}
- run: ${{ matrix.actions.run }}
42 changes: 42 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Close stale issues and PRs

on:
schedule:
- cron: '0 7 * * *'

permissions: { }

concurrency:
group: close-stale-${{ github.ref }}
cancel-in-progress: true

jobs:
stale:
name: Close stale issues and PRs
runs-on: ubuntu-24.04
permissions:
actions: write
issues: write
pull-requests: write
steps:
- uses: actions/stale@v10.1.0
with:
sort-by: updated
ascending: true # Start with ascending to process oldest items first
days-before-stale: 60
days-before-close: 30
exempt-all-milestones: true
stale-issue-message: >-
In an effort to keep our issue list manageable, we are marking this issue as stale because it has been 60 days without activity.
If this issue is still relevant, please let us know by posting a quick comment so that it remains open.
close-issue-message: >-
This issue was closed because it has been stalled for 90 days with no activity.
Feel free to open a new issue if necessary!
stale-pr-message: >-
In an effort to keep our pull request list manageable, we are marking this PR as stale because it has been 60 days without activity.
If this PR is still relevant, please let us know by posting a quick comment or update so that it can be assigned and hopefully merged.
close-pr-message: >-
This PR was closed because it has been stalled for 90 days with no activity.
Feel free to open a new PR if necessary!