From e04c56efc54c0c402d53839164829e56ea609210 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 29 May 2024 19:08:20 +1000 Subject: [PATCH] reduce ci workers --- .github/workflows/phpunit.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 0124517446..868498a3d5 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -17,7 +17,7 @@ jobs: php-versions: ['8.2'] phpunit-versions: ['latest'] ci_node_total: [ 8 ] - ci_node_index: [ 0, 1, 2, 3, 4, 5, 6, 7] + ci_node_index: [ 0, 1] laravel: [10.*] dependency-version: [prefer-stable] @@ -92,6 +92,18 @@ jobs: run: | cp .env.ci .env + - name: Get Composer Cache Directory + id: composer-cache + run: | + echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - uses: actions/cache@v4 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-${{ matrix.php }}-composer- + + - name: Install composer dependencies run: | composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}