From 94d4c98cbd0c1657b83b091b32ca36825bc64752 Mon Sep 17 00:00:00 2001 From: Sam Maosa Date: Mon, 15 Apr 2024 11:41:47 +0300 Subject: [PATCH] Fixed Tests - Removed laravel 10 jobs from the workflow in favor of laravel 11 --- .github/workflows/run-tests.yml | 40 --------------------------------- tests/ModulesTest.php | 7 ------ 2 files changed, 47 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 11cbc345..288157de 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -7,46 +7,6 @@ on: branches: [ main ] jobs: - test-l10: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: true - matrix: - os: [ ubuntu-latest, windows-latest ] - php: [ 8.1, 8.2, 8.3 ] - laravel: [ 10.* ] - testbench: [ 8.* ] - carbon: [ 2.* ] - stability: [ prefer-lowest, prefer-stable ] - - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: none - - - name: Setup problem matchers - run: | - echo "::add-matcher::${{ runner.tool_cache }}/php.json" - echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - - name: Install dependencies - run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update - composer update --${{ matrix.stability }} --prefer-dist --no-interaction - - - name: List Installed Dependencies - run: composer show -D - - - name: Execute tests - run: vendor/bin/pest --ci test-l11: runs-on: ${{ matrix.os }} strategy: diff --git a/tests/ModulesTest.php b/tests/ModulesTest.php index e4279b12..5d363218 100644 --- a/tests/ModulesTest.php +++ b/tests/ModulesTest.php @@ -3,10 +3,3 @@ it('can test', function () { expect(true)->toBeTrue(); }); - -// test that a module can be generated successfully -it('can generate a module', function () { - $this->artisan('module:make', ['name' => ['Example']]) - ->expectsOutput('Module created successfully.') - ->assertExitCode(0); -});