Skip to content

Commit 4cd4dbd

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. Removed matrix strategy from regular quickstart job.
1 parent b00d715 commit 4cd4dbd

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
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: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,28 @@ 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
1317

14-
strategy:
15-
matrix:
16-
php:
17-
- 8.1
18+
env:
19+
php: 8.1
1820

1921
steps:
2022
- uses: actions/checkout@v3
2123

22-
- name: Setup PHP ${{ matrix.php }}
24+
- name: Setup PHP ${{ env.php }}
2325
uses: shivammathur/setup-php@v2
2426
with:
25-
php-version: ${{ matrix.php }}
27+
php-version: ${{ env.php }}
2628

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

3433
- name: Initialize Composer project
3534
run: composer init --name foo/bar

0 commit comments

Comments
 (0)