Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed caching from Symfony quickstart jobs.
Browse files Browse the repository at this point in the history
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.
Bilge committed Dec 2, 2022
1 parent b00d715 commit 8df01f3
Showing 2 changed files with 7 additions and 13 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/Quickstart Symfony.yaml
Original file line number Diff line number Diff line change
@@ -30,13 +30,6 @@ jobs:
run: mkdir --verbose "$GITHUB_WORKFLOW"
working-directory:

- name: Cache dependencies
id: composer-cache
uses: actions/cache@v3
with:
path: ${{ github.workflow }}/vendor
key: php-quickstart-symfony-${{ env.php }}

- name: Create Symfony project
run: composer create-project symfony/skeleton . ^5

13 changes: 7 additions & 6 deletions .github/workflows/Quickstart.yaml
Original file line number Diff line number Diff line change
@@ -7,6 +7,10 @@ on:
schedule:
- cron: 0 6 * * *

defaults:
run:
working-directory: Quickstart

jobs:
Quickstart:
runs-on: ubuntu-latest
@@ -24,12 +28,9 @@ jobs:
with:
php-version: ${{ matrix.php }}

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

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

0 comments on commit 8df01f3

Please sign in to comment.