From 8059d76e78cef17c3376cdf459fe2f9cb6984c9f Mon Sep 17 00:00:00 2001 From: Kenneth Trecy Tobias Date: Sun, 27 Aug 2023 15:03:16 +0800 Subject: [PATCH] ci: re-cache dependencies but with lock file --- .github/workflows/backend.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index d3296790..1c7aa8bb 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -25,6 +25,13 @@ jobs: - uses: actions/checkout@v2 - name: Copy env run: php -r "file_exists('.env.ci') || copy('.env.ci', '.env');" + - name: Cache vendors + uses: actions/cache@v3 + with: + path: ./vendor + key: ${{ runner.os }}_8.1_${{ hashFiles('composer.*') }} + restore-keys: | + ${{ runner.os }}_8.1_${{ hashFiles('composer.*') }} - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - name: Set Writable Directory Permissions