From fb5f46c3f5ac406f9c36b608b1b2465b92115de4 Mon Sep 17 00:00:00 2001 From: Luca Patera Date: Thu, 14 Mar 2024 19:13:14 +0100 Subject: [PATCH] Fix workflow x2 --- .github/workflows/run-tests.yml | 11 +++-------- composer.json | 1 + 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 9658ee8..e6fb8e7 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -63,12 +63,6 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v1 - with: - path: ~/.composer/cache/files - key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -77,8 +71,9 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update - composer update --prefer-dist --no-interaction --no-suggest + composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update + composer require "orchestra/testbench:${{ matrix.testbench }}" --dev --no-interaction --no-update + composer update --prefer-dist --no-interaction - name: Execute tests run: composer run-script test diff --git a/composer.json b/composer.json index f08fd78..c777ec0 100644 --- a/composer.json +++ b/composer.json @@ -32,6 +32,7 @@ "require-dev": { "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0", "pestphp/pest": "^v1.23.1", + "phpunit/phpunit": "^9.6.10", "psalm/plugin-laravel": "^2.0", "vimeo/psalm": "^5.0" },