Skip to content

Commit e8e4f86

Browse files
author
Marcin Czarnecki
committed
Update actions
1 parent 60b5745 commit e8e4f86

6 files changed

Lines changed: 30 additions & 21 deletions

File tree

.github/workflows/benchmark.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,19 @@ jobs:
1919

2020
steps:
2121
- name: Checkout code
22-
uses: actions/checkout@v5
22+
uses: actions/checkout@v6
2323

2424
- name: Setup PHP
2525
uses: shivammathur/setup-php@v2
2626
with:
2727
php-version: ${{ matrix.php-version }}
2828

29-
- name: "Install dependencies with Composer"
30-
uses: "ramsey/composer-install@v1"
29+
- name: Remove symfony/clock for PHP < 8.1
30+
if: ${{ matrix.php-version < '8.1' }}
31+
run: composer remove --dev symfony/clock --no-update
32+
33+
- name: Install dependencies with Composer
34+
uses: ramsey/composer-install@v4
3135

3236
- name: Run performance benchmarks
3337
run: |

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: Checkout code
38-
uses: actions/checkout@v5
38+
uses: actions/checkout@v6
3939

4040
- name: Setup PHP
4141
uses: shivammathur/setup-php@v2
@@ -46,12 +46,12 @@ jobs:
4646
if: ${{ matrix.composer-stability }}
4747
run: composer config minimum-stability ${{ matrix.composer-stability }}
4848

49-
- name: Install symfony/clock for PHP >= 8.1
50-
if: ${{ matrix.php-version >= '8.1' }}
51-
run: composer require --dev symfony/clock:"^6.4 || ^7.0 || ^8.0" --no-update
49+
- name: Remove symfony/clock for PHP < 8.1
50+
if: ${{ matrix.php-version < '8.1' }}
51+
run: composer remove --dev symfony/clock --no-update
5252

5353
- name: Install dependencies with Composer
54-
uses: ramsey/composer-install@v3
54+
uses: ramsey/composer-install@v4
5555
with:
5656
dependency-versions: "${{ matrix.dependencies }}"
5757
composer-options: "${{ matrix.composer-options }}"

.github/workflows/coding-standards.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- "7.4"
1818

1919
steps:
20-
- name: "Checkout"
21-
uses: "actions/checkout@v5"
20+
- name: Checkout
21+
uses: actions/checkout@v6
2222

2323
- name: "Install PHP"
2424
uses: "shivammathur/setup-php@v2"
@@ -28,8 +28,12 @@ jobs:
2828
tools: "cs2pr"
2929
extensions: pdo_sqlite
3030

31-
- name: "Install dependencies with Composer"
32-
uses: "ramsey/composer-install@v3"
31+
- name: Remove symfony/clock for PHP < 8.1
32+
if: ${{ matrix.php-version < '8.1' }}
33+
run: composer remove --dev symfony/clock --no-update
34+
35+
- name: Install dependencies with Composer
36+
uses: ramsey/composer-install@v4
3337

3438
- name: "Run PHP_CodeSniffer"
3539
run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v5
14+
- uses: actions/checkout@v6
1515
- name: Set up Python
1616
uses: actions/setup-python@v2
1717
with:

.github/workflows/static-analysis.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
- "8.5"
2525

2626
steps:
27-
- name: "Checkout code"
28-
uses: "actions/checkout@v5"
27+
- name: Checkout code
28+
uses: actions/checkout@v6
2929

3030
- name: "Install PHP"
3131
uses: "shivammathur/setup-php@v2"
@@ -35,18 +35,18 @@ jobs:
3535
tools: "cs2pr"
3636
extensions: pdo_sqlite
3737

38-
- name: Install symfony/clock for PHP >= 8.1
39-
if: ${{ matrix.php-version >= '8.1' }}
40-
run: composer require --dev symfony/clock:"^6.4 || ^7.0 || ^8.0" --no-update
38+
- name: Remove symfony/clock for PHP < 8.1
39+
if: ${{ matrix.php-version < '8.1' }}
40+
run: composer remove --dev symfony/clock --no-update
4141

42-
- name: "Install dependencies with Composer"
43-
uses: "ramsey/composer-install@v3"
42+
- name: Install dependencies with Composer
43+
uses: ramsey/composer-install@v4
4444
with:
4545
composer-options: "${{ matrix.composer-options }}"
4646

4747
- name: "Run a static analysis with phpstan/phpstan"
4848
run: "vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr"
4949

5050
- name: "Run a static analysis with rector/rector"
51+
if: ${{ matrix.php-version == 8.5 }}
5152
run: "vendor/bin/rector --dry-run"
52-
if: ${{ matrix.php-version == 8.4 }}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"phpunit/phpunit": "^9.0 || ^10.0 || ^11.0",
4949
"psr/container": "^1.0 || ^2.0",
5050
"rector/rector": "^1.0.0 || ^2.0",
51+
"symfony/clock": "^6.4 || ^7.0 || ^8.0",
5152
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0 || ^8.0",
5253
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0 || ^8.0",
5354
"symfony/filesystem": "^5.4 || ^6.0 || ^7.0 || ^8.0",

0 commit comments

Comments
 (0)