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