Skip to content

Commit 8df01f3

Browse files
committed
Removed caching from Symfony quickstart jobs.
Caching causes the project directory to be non-empty on cache restore, which causes the create-project command to fail. Changed regular quickstart job to use custom (clean) working directory.
1 parent b00d715 commit 8df01f3

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.github/workflows/Quickstart Symfony.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,6 @@ jobs:
3030
run: mkdir --verbose "$GITHUB_WORKFLOW"
3131
working-directory:
3232

33-
- name: Cache dependencies
34-
id: composer-cache
35-
uses: actions/cache@v3
36-
with:
37-
path: ${{ github.workflow }}/vendor
38-
key: php-quickstart-symfony-${{ env.php }}
39-
4033
- name: Create Symfony project
4134
run: composer create-project symfony/skeleton . ^5
4235

.github/workflows/Quickstart.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
schedule:
88
- cron: 0 6 * * *
99

10+
defaults:
11+
run:
12+
working-directory: Quickstart
13+
1014
jobs:
1115
Quickstart:
1216
runs-on: ubuntu-latest
@@ -24,12 +28,9 @@ jobs:
2428
with:
2529
php-version: ${{ matrix.php }}
2630

27-
- name: Cache dependencies
28-
id: composer-cache
29-
uses: actions/cache@v3
30-
with:
31-
path: vendor
32-
key: php-quickstart-${{ matrix.php }}
31+
- name: Create working directory
32+
run: mkdir --verbose "$GITHUB_WORKFLOW"
33+
working-directory:
3334

3435
- name: Initialize Composer project
3536
run: composer init --name foo/bar

0 commit comments

Comments
 (0)