From cef4baddbc8e8e4560260f6fa5cc8eef00d8dedc Mon Sep 17 00:00:00 2001 From: Andreas Wolf Date: Sat, 7 Dec 2019 18:10:52 +0100 Subject: [PATCH] [TASK] Cache Composer dependencies during build (#36) Also fix the name of TS the lint step. --- .github/workflows/ci.yml | 18 +++++++++++++++++- CHANGELOG.md | 1 + 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89fdf5b..dfef200 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,10 +33,18 @@ jobs: - name: Checkout uses: actions/checkout@v1 + - name: "Cache dependencies installed with composer" + uses: actions/cache@v1 + with: + path: ~/.composer/cache + key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }} + restore-keys: | + php${{ matrix.php-version }}-composer- + - name: Install Composer dependencies run: composer install --no-progress - - name: Run PHP lint + - name: Run TypoScript lint run: composer ci:ts:lint php-code-sniffer: @@ -48,6 +56,14 @@ jobs: - name: Checkout uses: actions/checkout@v1 + - name: "Cache dependencies installed with composer" + uses: actions/cache@v1 + with: + path: ~/.composer/cache + key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }} + restore-keys: | + php${{ matrix.php-version }}-composer- + - name: Install Composer dependencies run: composer install --no-progress diff --git a/CHANGELOG.md b/CHANGELOG.md index 176e54f..45e502d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ## x.y.z ### Added +- Cache Composer dependencies in build (#31) - Add a status badge for GitHub actions (#32) - Composer script for PHP code sniffer fixing (#21) - Run the functional tests in parallel