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
12 changes: 12 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
groups:
github-actions:
patterns:
- '*'
cooldown:
default-days: 7
21 changes: 14 additions & 7 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
push:
branches: ['1.x']

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

permissions:
contents: read

jobs:
easy-coding-standard:
name: Easy Coding Standard (PHP ${{ matrix.php-version }})
Expand All @@ -14,22 +21,22 @@ jobs:
strategy:
matrix:
php-version:
- '8.4'
- '8.5'

steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
with:
coverage: none
php-version: ${{ matrix.php-version }}
tools: cs2pr
extensions: zip

- name: Install Composer dependencies
uses: ramsey/composer-install@v3
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0

- name: Run Easy Coding Standard
run: 'vendor/bin/ecs --output-format=checkstyle | cs2pr'
run: vendor/bin/ecs
30 changes: 20 additions & 10 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@ on:
push:
branches: ['1.x']

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

permissions:
contents: read

jobs:
phpunit:
name: PHPUnit (PHP ${{ matrix.php-version }} - Symfony ${{ matrix.symfony-version }})
runs-on: ubuntu-24.04
continue-on-error: ${{ matrix.continue-on-error || false }}
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}

Expand All @@ -22,38 +30,40 @@ jobs:
- '8.5'
symfony-version:
- '6.4.*'
- '7.3.*'
- '7.4.*@dev'
- '7.4.*'
include:
- php-version: '8.4'
symfony-version: '8.0.*@dev'
symfony-version: '8.0.*'
- php-version: '8.5'
symfony-version: '8.0.*'
- php-version: '8.5'
symfony-version: '8.0.*@dev'
symfony-version: '8.1.*@dev'
continue-on-error: true

steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
fetch-depth: 2

- name: Install PHP with pcov
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
with:
coverage: pcov
php-version: ${{ matrix.php-version }}
extensions: zip
tools: flex

- name: Configure Composer minimum-stability for dev versions
if: contains(matrix.symfony-version, 'dev')
run: composer config minimum-stability dev

- name: Install Composer dependencies
uses: ramsey/composer-install@v3
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0

- name: Run PHPUnit
run: vendor/bin/phpunit --coverage-clover=coverage.xml

- name: Upload to Codecov
uses: codecov/codecov-action@v5
if: matrix.php-version == '8.4' && matrix.symfony-version == '6.4.*'
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
if: matrix.php-version == '8.4' && matrix.symfony-version == '7.4.*'
21 changes: 14 additions & 7 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
push:
branches: ['1.x']

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

permissions:
contents: read

jobs:
phpstan:
name: PHPStan (PHP ${{ matrix.php-version }})
Expand All @@ -14,22 +21,22 @@ jobs:
strategy:
matrix:
php-version:
- '8.4'
- '8.5'

steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
with:
coverage: none
php-version: ${{ matrix.php-version }}
tools: cs2pr
extensions: zip

- name: Install Composer dependencies
uses: ramsey/composer-install@v3
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0

- name: Run PHPStan
run: 'vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr'
run: vendor/bin/phpstan analyse
35 changes: 35 additions & 0 deletions .github/workflows/zizmor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: GitHub Actions Security Analysis with zizmor 🌈

on:
pull_request:
branches: ["*.x"]
paths:
- '.github/**.yaml'
push:
branches: ["*.x"]
paths:
- '.github/**.yaml'

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

permissions:
contents: read

jobs:
zizmor:
name: Run zizmor 🌈
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Run zizmor 🌈
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
with:
advanced-security: false
annotations: true
persona: 'pedantic'