Skip to content

Commit bc067ff

Browse files
committed
ci(inferno): caching in groups
1 parent 9e9083e commit bc067ff

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/inferno-test.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,24 @@ jobs:
6060
composer config cache-files-dir
6161
} >> "$GITHUB_OUTPUT"
6262
63-
- name: Cache Composer dependencies
64-
uses: actions/cache@v4
63+
- name: Composer Cache
64+
uses: actions/cache/restore@v4
6565
with:
6666
path: ${{ steps.composer-cache.outputs.dir }}
6767
key: ${{ runner.os }}-composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
6868
restore-keys: |
6969
${{ runner.os }}-composer-${{ matrix.php-version }}-
7070
${{ runner.os }}-composer-
7171
72+
- name: Composer Install
73+
run: composer install --prefer-dist --no-progress
74+
75+
- name: Save composer cache
76+
uses: actions/cache/save@v4
77+
with:
78+
path: ${{ steps.composer-cache.outputs.dir }}
79+
key: ${{ runner.os }}-composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
80+
7281
- name: Install npm package
7382
uses: actions/setup-node@v4
7483
with:
@@ -83,7 +92,7 @@ jobs:
8392
} >> "$GITHUB_OUTPUT"
8493
8594
- name: Cache node modules
86-
uses: actions/cache@v4
95+
uses: actions/cache/restore@v4
8796
with:
8897
path: ${{ steps.npm-cache-dir.outputs.dir }}
8998
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
@@ -94,6 +103,12 @@ jobs:
94103
- name: NPM CI
95104
run: npm ci
96105

106+
- name: Save node cache
107+
uses: actions/cache/save@v4
108+
with:
109+
path: ${{ steps.npm-cache-dir.outputs.dir }}
110+
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
111+
97112
- name: Set up Docker Buildx
98113
uses: docker/setup-buildx-action@v3
99114

0 commit comments

Comments
 (0)