From bbc54f6daa1d04e465394af184dc85ef7e235efa Mon Sep 17 00:00:00 2001 From: yaozm Date: Sat, 12 Aug 2023 22:57:15 +0800 Subject: [PATCH] chore(tests.yml): update dependencies installation - Added a new step to install dependencies - Updated the composer command to require specific packages - Added composer update command after package installation --- .github/workflows/tests.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f4f6b4d..6e47bda 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,7 +33,8 @@ jobs: - laravel: 10.* php: 8.0 - name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} +# name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} steps: - name: Checkout code @@ -52,8 +53,13 @@ jobs: extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick coverage: xdebug +# - name: Install dependencies +# run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --ansi -v + - name: Install dependencies - run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --ansi -v + run: | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:>=2.62.1" --no-interaction --no-update + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - name: Execute tests run: composer test-coverage