Skip to content

Commit

Permalink
Merge pull request #87 from savannabits/4.x-dev
Browse files Browse the repository at this point in the history
Fixed Tests
  • Loading branch information
coolsam726 authored Apr 15, 2024
2 parents dea8138 + 94d4c98 commit c6f0509
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 47 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 0 additions & 7 deletions tests/ModulesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

0 comments on commit c6f0509

Please sign in to comment.