Skip to content

Commit 69905e8

Browse files
committed
Upgrade GitHub actions & test against Symfony 8.1
1 parent a6613d9 commit 69905e8

5 files changed

Lines changed: 91 additions & 20 deletions

File tree

.github/dependabot.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'
7+
groups:
8+
github-actions:
9+
patterns:
10+
- '*'
11+
cooldown:
12+
default-days: 7

.github/workflows/coding-standards.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
push:
77
branches: ['2.x', '1.x']
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
916
jobs:
1017
php-cs-fixer:
1118
name: PHP CS Fixer (PHP ${{ matrix.php-version }})
@@ -18,19 +25,20 @@ jobs:
1825

1926
steps:
2027
- name: Checkout code
21-
uses: actions/checkout@v5
28+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
29+
with:
30+
persist-credentials: false
2231

2332
- name: Install PHP
24-
uses: shivammathur/setup-php@v2
33+
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
2534
with:
2635
coverage: none
2736
php-version: ${{ matrix.php-version }}
28-
tools: cs2pr
2937

3038
- name: Install Composer dependencies
31-
uses: ramsey/composer-install@v3
39+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
3240
with:
3341
composer-options: '--working-dir=tools/php-cs-fixer'
3442

3543
- name: Run PHP CS Fixer
36-
run: 'tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr'
44+
run: 'tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run'

.github/workflows/continuous-integration.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
push:
77
branches: ['2.x', '1.x']
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
916
jobs:
1017
phpunit:
1118
name: PHPUnit (PHP ${{ matrix.php-version }} - Symfony ${{ matrix.symfony-version }})
@@ -22,20 +29,21 @@ jobs:
2229
- '8.5'
2330
symfony-version:
2431
- '6.4.*'
25-
- '7.3.*'
26-
- '7.4.*@dev'
32+
- '7.4.*'
2733
include:
28-
- php-version: '8.4'
29-
symfony-version: '8.0.*@dev'
3034
- php-version: '8.5'
31-
symfony-version: '8.0.*@dev'
35+
symfony-version: '8.1.*'
36+
- php-version: '8.5'
37+
symfony-version: '8.2.*@dev'
3238

3339
steps:
3440
- name: Checkout
35-
uses: actions/checkout@v5
41+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
42+
with:
43+
persist-credentials: false
3644

3745
- name: Setup PHP
38-
uses: shivammathur/setup-php@v2
46+
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
3947
with:
4048
php-version: ${{ matrix.php-version }}
4149
extensions: zip
@@ -47,7 +55,7 @@ jobs:
4755
run: composer config minimum-stability dev
4856

4957
- name: Install Composer dependencies
50-
uses: ramsey/composer-install@v3
58+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
5159

5260
- name: Setup Git
5361
run: |
@@ -59,5 +67,5 @@ jobs:
5967
run: vendor/bin/phpunit --coverage-clover=coverage.xml
6068

6169
- name: Upload coverage to Codecov
62-
uses: codecov/codecov-action@v5
70+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
6371
if: matrix.php-version == '8.2' && matrix.symfony-version == '6.4.*'

.github/workflows/static-analysis.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
push:
77
branches: ['2.x', '1.x']
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
916
jobs:
1017
phpstan:
1118
name: PHPStan (PHP ${{ matrix.php-version }})
@@ -18,22 +25,23 @@ jobs:
1825

1926
steps:
2027
- name: Checkout code
21-
uses: actions/checkout@v5
28+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
29+
with:
30+
persist-credentials: false
2231

2332
- name: Install PHP
24-
uses: shivammathur/setup-php@v2
33+
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
2534
with:
2635
coverage: none
2736
php-version: ${{ matrix.php-version }}
28-
tools: cs2pr
2937

3038
- name: Install Composer dependencies
31-
uses: ramsey/composer-install@v3
39+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
3240

3341
- name: Install Composer dependencies for PHPStan
34-
uses: ramsey/composer-install@v3
42+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
3543
with:
3644
composer-options: '--working-dir=tools/phpstan'
3745

3846
- name: Run PHPStan
39-
run: 'tools/phpstan/vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr'
47+
run: 'tools/phpstan/vendor/bin/phpstan analyse'

.github/workflows/zizmor.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: GitHub Actions Security Analysis with zizmor 🌈
2+
3+
on:
4+
pull_request:
5+
branches: ["*.x"]
6+
paths:
7+
- '.github/**.yaml'
8+
push:
9+
branches: ["*.x"]
10+
paths:
11+
- '.github/**.yaml'
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
zizmor:
22+
name: Run zizmor 🌈
23+
runs-on: ubuntu-24.04
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
27+
with:
28+
persist-credentials: false
29+
30+
- name: Run zizmor 🌈
31+
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
32+
with:
33+
advanced-security: false
34+
annotations: true
35+
persona: 'pedantic'

0 commit comments

Comments
 (0)