From 3af79016e8ded70a7177ee0807b889f990eb3e17 Mon Sep 17 00:00:00 2001 From: Yorda Date: Thu, 18 Apr 2024 12:51:33 -0600 Subject: [PATCH] :eyes: fixing test execution not being skipped for 8.1 & laravel 11 --- .github/workflows/phpunit.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 5a30224..996b7b5 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -64,11 +64,16 @@ jobs: - name: Install dependencies run: | if [ "${{ matrix.skip }}" == "true" ]; then - echo "Skipping PHP ${{ matrix.php }} with Laravel 11." + echo "Skipping Install Dependencies ${{ matrix.php }} with Laravel 11." exit 0 fi composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --prefer-dist --no-interaction --no-suggest - name: Execute tests - if: ${{ matrix.skip != 'true' }} - run: vendor/bin/phpunit + run: | + if [ "${{ matrix.skip }}" == "true" ]; then + echo "Skipping Test Execution for ${{ matrix.php }} with Laravel 11." + exit 0 + fi + + vendor/bin/phpunit --testdox