Skip to content

Commit b8f4bae

Browse files
committed
Trigger CI
1 parent 4980d52 commit b8f4bae

File tree

8 files changed

+62
-29
lines changed

8 files changed

+62
-29
lines changed

.github/actions/install-root-dependencies/action.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ name: Install root dependencies
22
runs:
33
using: composite
44
steps:
5+
- name: Get Composer Cache Directory
6+
id: composer-cache
7+
run: |
8+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
9+
shell: bash
10+
511
- name: Cache root Composer dependencies
612
uses: actions/cache@v4
713
with:
8-
path: vendor
14+
path: ${{ steps.composer-cache.outputs.dir }}
915
key: ${{ runner.os }}-composer-root-${{ hashFiles('composer.json') }}
1016
restore-keys: |
1117
${{ runner.os }}-composer-root-

.github/actions/install-website-dependencies/action.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ inputs:
77
runs:
88
using: composite
99
steps:
10+
- name: Get Composer Cache Directory
11+
id: composer-cache
12+
run: |
13+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
14+
shell: bash
15+
1016
- name: Cache website Composer dependencies
1117
uses: actions/cache@v4
1218
with:
13-
path: vendor
19+
path: ${{ steps.composer-cache.outputs.dir }}
1420
key: ${{ runner.os }}-composer-website-${{ inputs.dependency-version }}-${{ hashFiles('ux.symfony.com/composer.json') }}
1521
restore-keys: |
1622
${{ runner.os }}-composer-website-${{ inputs.dependency-version }}-

.github/workflows/app-tests.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ jobs:
4343
src/**/package.json
4444
test_apps/encore-app/package.json
4545
46+
- uses: shivammathur/setup-php@v2
47+
48+
- name: Get Composer Cache Directory
49+
id: composer-cache
50+
run: |
51+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
52+
4653
- name: Cache Testing apps dependencies
4754
uses: actions/cache@v4
4855
with:
@@ -51,9 +58,7 @@ jobs:
5158
restore-keys: |
5259
${{ runner.os }}-composer-testing-app-${{ matrix.ux-packages-source }}-
5360
54-
- uses: shivammathur/setup-php@v2
55-
56-
- uses: ./.github/actions/install-root-dependencies
61+
- uses: ./.github/workflows/actions/install-root-dependencies
5762

5863
- name: Build root packages
5964
run: php .github/build-packages.php

.github/workflows/code-quality.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
php-version: 8.1
8484
tools: flex
8585

86-
- uses: ./.github/actions/install-root-dependencies
86+
- uses: ./.github/workflows/actions/install-root-dependencies
8787

8888
- name: Build root packages
8989
run: php .github/build-packages.php

.github/workflows/functional-tests.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,27 @@ jobs:
5454
- name: Checkout
5555
uses: actions/checkout@v4
5656

57-
- name: Cache packages dependencies
58-
uses: actions/cache@v4
59-
with:
60-
path: vendor
61-
key: ${{ runner.os }}-composer-turbo-${{ matrix.php-version }}-${{ matrix.dependency-version }}-${{ matrix.symfony-version }}-${{ matrix.minimum-stability }}-${{ hashFiles('src/**/composer.json') }}
62-
restore-keys: |
63-
${{ runner.os }}-composer-turbo-${{ matrix.php-version }}-
64-
6557
- name: Setup PHP
6658
uses: shivammathur/setup-php@v2
6759
with:
6860
php-version: ${{ matrix.php-version }}
6961
tools: flex
7062

71-
- uses: ./.github/actions/install-root-dependencies
63+
- name: Get Composer Cache Directory
64+
id: composer-cache
65+
run: |
66+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
67+
shell: bash
68+
69+
- name: Cache packages dependencies
70+
uses: actions/cache@v4
71+
with:
72+
path: ${{ steps.composer-cache.outputs.dir }}
73+
key: ${{ runner.os }}-composer-turbo-${{ matrix.php-version }}-${{ matrix.dependency-version }}-${{ matrix.symfony-version }}-${{ matrix.minimum-stability }}-${{ hashFiles('src/**/composer.json') }}
74+
restore-keys: |
75+
${{ runner.os }}-composer-turbo-${{ matrix.php-version }}-
76+
77+
- uses: ./.github/workflows/actions/install-root-dependencies
7278

7379
- name: Build root packages
7480
run: php .github/build-packages.php

.github/workflows/toolkit-kits-code-quality.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ jobs:
1616

1717
- uses: shivammathur/setup-php@v2
1818

19+
- name: Get Composer Cache Directory
20+
id: composer-cache
21+
run: |
22+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
23+
1924
- name: Cache dependencies
2025
uses: actions/cache@v4
2126
with:
22-
path: vendor
27+
path: ${{ steps.composer-cache.outputs.dir }}
2328
key: ${{ runner.os }}-composer-kits-${{ hashFiles('composer.json') }}
2429
restore-keys: |
2530
${{ runner.os }}-composer-kits-

.github/workflows/unit-tests.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,26 @@ jobs:
6262
echo "Packages: $PACKAGES"
6363
echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV
6464
65-
- name: Cache packages dependencies
66-
uses: actions/cache@v4
67-
with:
68-
path: vendor
69-
key: ${{ runner.os }}-composer-packages-${{ matrix.php-version }}-${{ matrix.dependency-version }}-${{ matrix.symfony-version }}-${{ matrix.minimum-stability }}-${{ hashFiles('src/**/composer.json') }}
70-
restore-keys: |
71-
${{ runner.os }}-composer-packages-${{ matrix.php-version }}-
72-
7365
- name: Setup PHP
7466
uses: shivammathur/setup-php@v2
7567
with:
7668
php-version: ${{ matrix.php-version }}
7769
tools: flex
7870

79-
- uses: ./.github/actions/install-root-dependencies
71+
- name: Get Composer Cache Directory
72+
id: composer-cache
73+
run: |
74+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
75+
76+
- name: Cache packages dependencies
77+
uses: actions/cache@v4
78+
with:
79+
path: ${{ steps.composer-cache.outputs.dir }}
80+
key: ${{ runner.os }}-composer-packages-${{ matrix.php-version }}-${{ matrix.dependency-version }}-${{ matrix.symfony-version }}-${{ matrix.minimum-stability }}-${{ hashFiles('src/**/composer.json') }}
81+
restore-keys: |
82+
${{ runner.os }}-composer-packages-${{ matrix.php-version }}-
83+
84+
- uses: ./.github/workflows/actions/install-root-dependencies
8085

8186
- name: Build root packages
8287
run: php .github/build-packages.php

.github/workflows/ux.symfony.com.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
php-version: '8.3'
3333
tools: php-cs-fixer
3434

35-
- uses: ./.github/actions/install-website-dependencies
35+
- uses: ./.github/workflows/actions/install-website-dependencies
3636

3737
- name: php-cs-fixer
3838
run: php-cs-fixer check --diff
@@ -50,7 +50,7 @@ jobs:
5050
with:
5151
php-version: '8.3'
5252

53-
- uses: ./.github/actions/install-website-dependencies
53+
- uses: ./.github/workflows/actions/install-website-dependencies
5454

5555
- name: twig-cs-fixer
5656
run: vendor/bin/twig-cs-fixer lint templates --report=github
@@ -68,13 +68,13 @@ jobs:
6868
with:
6969
php-version: '8.3'
7070

71-
- uses: ./.github/actions/install-root-dependencies
71+
- uses: ./.github/workflows/actions/install-root-dependencies
7272

7373
- name: Build root packages
7474
run: php .github/build-packages.php
7575
working-directory: ${{ github.workspace }}
7676

77-
- uses: ./.github/actions/install-website-dependencies
77+
- uses: ./.github/workflows/actions/install-website-dependencies
7878
with:
7979
dependency-versions: 'highest'
8080

0 commit comments

Comments
 (0)