From 3b89713286e6e0afea6bf6e3889fc383a5b0aab2 Mon Sep 17 00:00:00 2001 From: Eike Starkmann Date: Tue, 30 Jul 2024 12:54:15 +0200 Subject: [PATCH] [TASK] add composer update and caching to lint job Resolves: #1139 --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c2be1f..a424aa7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,14 @@ jobs: ini-file: development coverage: none tools: composer:v2 + - name: "Cache dependencies installed with composer" + uses: actions/cache@v4 + with: + key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}" + path: ~/.cache/composer + restore-keys: "php${{ matrix.php-version }}-composer-\n" + - name: "Install Composer dependencies" + run: "composer update --no-progress" - name: "Show the Composer configuration" run: "composer config --global --list" - name: "Run PHP lint"