Skip to content

Commit

Permalink
Update tests.yml (#83)
Browse files Browse the repository at this point in the history
* Update tests.yml

* Update tests.yml

* Update composer.json

Changed doctrine/dbal to ^2.9, as the ^2.10 constraint excludes support for PHP 7.1

* Add skipped group to skipped tests
  • Loading branch information
morpheus7CS committed Apr 16, 2021
1 parent 5068c36 commit 3faf827
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,33 @@ jobs:

strategy:
matrix:
php: [7.1, 7.2, 7.3, 7.4]
laravel: [5.8.*, 6.*]
php: [7.1, 7.2, 7.3, 7.4, 8.0]
laravel: [5.8.*, 6.*, 7.*, 8.*]
os: [ubuntu-latest]
include:
- laravel: 8.*
testbench: 6.*
database: 6.*
- laravel: 7.*
testbench: 5.*
database: 5.*
- laravel: 6.*
testbench: 4.*
database: 4.*
- laravel: 5.8.*
testbench: 3.8.*
database: 3.8.*
exclude:
- laravel: 5.8.*
php: 8.0
- laravel: 6.*
php: 7.1
- laravel: 7.*
php: 7.1
- laravel: 8.*
php: 7.1
- laravel: 8.*
php: 7.2

name: PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }}

Expand All @@ -27,16 +48,16 @@ jobs:
uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v1
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extension: mbstring, pdo, pdo_sqlite
coverage: none

- name: Install dependencies
run: |
composer require "illuminate/contracts:${{ matrix.laravel }}" --no-interaction --no-update
composer require "illuminate/contracts:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "orchestra/database:${{ matrix.database }}" --no-interaction --no-update
composer install --prefer-dist --no-interaction --no-suggest
- name: Run tests
run: vendor/bin/phpunit
run: vendor/bin/phpunit --exclude-group skipped
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"illuminate/support": "^5.8 || ^6.0 || ^7.0 || ^8.0"
},
"require-dev": {
"doctrine/dbal": "^2.10",
"doctrine/dbal": "^2.9",
"orchestra/database": "3.8.* || 3.9.* || ^4.0 || ^5.0",
"orchestra/testbench": "3.8.* || 3.9.* || ^4.0 || ^6.0",
"phpunit/phpunit": "^7.5 || ^8.4 || ^9.0"
Expand Down
10 changes: 8 additions & 2 deletions tests/SushiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,19 @@ function caches_sqlite_file_if_storage_cache_folder_is_available()
);
}

/** @test */
/**
* @test
* @group skipped
* */
function uses_same_cache_between_requests()
{
$this->markTestSkipped("I can't find a good way to test this right now.");
}

/** @test */
/**
* @test
* @group skipped
* */
function use_same_cache_between_requests()
{
$this->markTestSkipped("I can't find a good way to test this right now.");
Expand Down

0 comments on commit 3faf827

Please sign in to comment.