From 8c32975657356998b4be50906962dc1100950312 Mon Sep 17 00:00:00 2001 From: Jiannei Date: Mon, 21 Dec 2020 23:55:38 +0800 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b7aaa5..d2a655b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,11 +25,13 @@ jobs: uses: actions/cache@v2 with: path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: | - ${{ runner.os }}-php- + ${{ runner.os }}-composer- - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs + run: | + composer require --dev "jiannei/laravel-enum" --no-interaction --no-update + composer update --prefer-dist --no-interaction - name: Execute tests (Unit and Feature tests) via PHPUnit run: vendor/bin/phpunit