Skip to content

Commit 4f687d0

Browse files
committed
Update workflow definitions
1 parent 576e81f commit 4f687d0

File tree

4 files changed

+29
-32
lines changed

4 files changed

+29
-32
lines changed

.github/workflows/dependencies.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ on:
1010
pull_request:
1111

1212
env:
13-
PHP_VERSION: 8.1
13+
PHP_VERSION: 8.4
1414

1515
jobs:
1616
composer-require-checker:
1717
name: Check missing composer requirements
18-
runs-on: ubuntu-22.04
18+
runs-on: ubuntu-latest
19+
if: github.actor != 'dependabot[bot]'
1920
steps:
2021
- uses: shivammathur/setup-php@v2
2122
with:
@@ -26,8 +27,12 @@ jobs:
2627
- uses: actions/cache@v4
2728
with:
2829
path: vendor
29-
key: composer-${{ runner.os }}-${{ env.PHP_VERSION }}-${{ matrix.symfony-locked-version }}-${{ matrix.dependency-version }}-${{ hashFiles('composer.json') }}
30+
key: composer-${{ runner.os }}-${{ env.PHP_VERSION }}-${{ hashFiles('composer.json', 'composer.lock') }}
3031
restore-keys: |
31-
composer-${{ runner.os }}-${{ env.PHP_VERSION }}-${{ matrix.symfony-locked-version }}-${{ matrix.dependency-version }}-
32-
- run: composer install --no-interaction --no-scripts --no-progress --prefer-dist
33-
- uses: docker://ghcr.io/webfactory/composer-require-checker:4.6.0
32+
composer-${{ runner.os }}-${{ env.PHP_VERSION }}-
33+
composer-${{ runner.os }}-
34+
- run: |
35+
composer install --no-interaction --no-progress --ansi --no-scripts
36+
composer show
37+
- name: ComposerRequireChecker
38+
uses: docker://ghcr.io/webfactory/composer-require-checker:4.18.0

.github/workflows/fix-cs-php.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Update this by running
2-
# curl https://gist.github.com/mpdude/ca93a185bcbf56eb7e341632ad4f8263/raw/fix-cs-php.yml > .github/workflows/fix-cs-php.yml
2+
# curl https://gist.githubusercontent.com/mpdude/804005e2bc7717bc36e4def876a5303d/raw/fix-php-cs.yml > .github/workflows/fix-cs-php.yml
3+
4+
name: Coding Standards
35

46
on:
57
push:
68
branches:
79
- master
810
pull_request:
911

10-
name: Coding Standards
11-
1212
jobs:
13-
fix-cs-issues:
14-
name: PHP-CS-Fixer
15-
runs-on: ubuntu-22.04
13+
fix-cs-violations:
14+
name: Apply PHP-CS-Fixer
15+
runs-on: ubuntu-latest
1616
if: github.actor != 'dependabot[bot]'
1717
steps:
1818
- name: Checkout code
@@ -21,7 +21,7 @@ jobs:
2121
ref: ${{ github.head_ref }}
2222

2323
- name: Run PHP-CS-Fixer
24-
uses: docker://ghcr.io/php-cs-fixer/php-cs-fixer:3.62.0-php8.3
24+
uses: docker://ghcr.io/php-cs-fixer/php-cs-fixer:3.89.2-php8.4
2525
with:
2626
args: "fix --show-progress=dots"
2727

.github/workflows/lock-symfony-version.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,32 @@ on:
66
- master
77
pull_request:
88

9-
env:
10-
SYMFONY_DEPRECATIONS_HELPER: weak
11-
129
jobs:
1310
PHPUnit:
14-
15-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1612
strategy:
1713
fail-fast: false
1814
matrix:
1915
include:
20-
- { php-version: 8.1, symfony-locked-version: none, dependency-version: prefer-lowest }
21-
- { php-version: 8.1, symfony-locked-version: 5.4.*, dependency-version: prefer-stable }
22-
- { php-version: 8.2, symfony-locked-version: 6.4.*, dependency-version: prefer-stable }
23-
- { php-version: 8.3, symfony-locked-version: none, dependency-version: prefer-stable }
24-
name: PHPUnit (PHP ${{matrix.php-version}}, Symfony Version Lock ${{ matrix.symfony-locked-version }}, ${{ matrix.dependency-version }})
16+
- { php-version: 8.1, symfony-version: 6.4.*, dependency-version: prefer-stable }
17+
- { php-version: 8.3, symfony-version: 7.*, dependency-version: prefer-stable }
18+
- { php-version: 8.4, symfony-version: 8.*, dependency-version: prefer-stable }
19+
name: PHPUnit (PHP ${{matrix.php-version}}, Symfony version lock ${{ matrix.symfony-version || 'none' }}, ${{ matrix.dependency-version }})
2520
steps:
2621
- uses: actions/checkout@v4
2722
- uses: shivammathur/setup-php@v2
2823
with:
2924
php-version: ${{ matrix.php-version }}
3025
coverage: none
31-
tools: composer:v2
26+
tools: composer:v2, flex
3227
- uses: actions/cache@v4
3328
with:
3429
path: vendor
35-
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.symfony-locked-version }}-${{ matrix.dependency-version }}-${{ hashFiles('composer.json') }}
30+
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.symfony-version }}-${{ matrix.dependency-version }}-${{ hashFiles('composer.json') }}
3631
restore-keys: |
37-
composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.symfony-locked-version }}-${{ matrix.dependency-version }}-
38-
- run: VERSION=${{ matrix.symfony-locked-version }} .github/workflows/lock-symfony-version.sh
39-
if: matrix.symfony-locked-version != 'none'
32+
composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.symfony-version }}-${{ matrix.dependency-version }}-
4033
- run: composer update --${{ matrix.dependency-version }} --no-interaction --no-scripts --no-progress --ansi
34+
env:
35+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
4136
- run: composer show
42-
- run: vendor/bin/phpunit
37+
- run: vendor/bin/phpunit --display-warnings --display-deprecations

0 commit comments

Comments
 (0)