From 3c25944227fa8de22c12d58ce4a50d7f4bcaab65 Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Fri, 19 Dec 2025 00:05:25 +0100 Subject: [PATCH 1/2] Add stale workflow --- .github/workflows/stale.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..9c8aa73 --- /dev/null +++ b/.github/workflows/stale.yml @@ -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! From 70b02ef09a5ca71a62c3e4b24268e8d14fd40a6b Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Fri, 19 Dec 2025 00:05:26 +0100 Subject: [PATCH 2/2] Update code analysis --- .github/workflows/code_analysis.yaml | 113 ++++++++++++++------------- 1 file changed, 59 insertions(+), 54 deletions(-) diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index 1ef8cb9..cc3ba24 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -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 }}