Skip to content

Commit eb13ad1

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

5 files changed

Lines changed: 63 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: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,18 @@ jobs:
1818

1919
steps:
2020
- name: Checkout code
21-
uses: actions/checkout@v5
21+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2222

2323
- name: Install PHP
24-
uses: shivammathur/setup-php@v2
24+
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
2525
with:
2626
coverage: none
2727
php-version: ${{ matrix.php-version }}
28-
tools: cs2pr
2928

3029
- name: Install Composer dependencies
31-
uses: ramsey/composer-install@v3
30+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
3231
with:
3332
composer-options: '--working-dir=tools/php-cs-fixer'
3433

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

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,18 @@ jobs:
2222
- '8.5'
2323
symfony-version:
2424
- '6.4.*'
25-
- '7.3.*'
26-
- '7.4.*@dev'
25+
- '7.4.*'
26+
- '8.1.*'
2727
include:
28-
- php-version: '8.4'
29-
symfony-version: '8.0.*@dev'
3028
- php-version: '8.5'
31-
symfony-version: '8.0.*@dev'
29+
symfony-version: '8.2.*@dev'
3230

3331
steps:
3432
- name: Checkout
35-
uses: actions/checkout@v5
33+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3634

3735
- name: Setup PHP
38-
uses: shivammathur/setup-php@v2
36+
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
3937
with:
4038
php-version: ${{ matrix.php-version }}
4139
extensions: zip
@@ -47,7 +45,7 @@ jobs:
4745
run: composer config minimum-stability dev
4846

4947
- name: Install Composer dependencies
50-
uses: ramsey/composer-install@v3
48+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
5149

5250
- name: Setup Git
5351
run: |
@@ -59,5 +57,5 @@ jobs:
5957
run: vendor/bin/phpunit --coverage-clover=coverage.xml
6058

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

.github/workflows/static-analysis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,21 @@ jobs:
1818

1919
steps:
2020
- name: Checkout code
21-
uses: actions/checkout@v5
21+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2222

2323
- name: Install PHP
24-
uses: shivammathur/setup-php@v2
24+
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
2525
with:
2626
coverage: none
2727
php-version: ${{ matrix.php-version }}
28-
tools: cs2pr
2928

3029
- name: Install Composer dependencies
31-
uses: ramsey/composer-install@v3
30+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
3231

3332
- name: Install Composer dependencies for PHPStan
34-
uses: ramsey/composer-install@v3
33+
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
3534
with:
3635
composer-options: '--working-dir=tools/phpstan'
3736

3837
- name: Run PHPStan
39-
run: 'tools/phpstan/vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr'
38+
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)