Skip to content

Commit 3faf827

Browse files
authored
Update tests.yml (#83)
* 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
1 parent 5068c36 commit 3faf827

File tree

3 files changed

+35
-8
lines changed

3 files changed

+35
-8
lines changed

.github/workflows/tests.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,33 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
php: [7.1, 7.2, 7.3, 7.4]
17-
laravel: [5.8.*, 6.*]
16+
php: [7.1, 7.2, 7.3, 7.4, 8.0]
17+
laravel: [5.8.*, 6.*, 7.*, 8.*]
1818
os: [ubuntu-latest]
19+
include:
20+
- laravel: 8.*
21+
testbench: 6.*
22+
database: 6.*
23+
- laravel: 7.*
24+
testbench: 5.*
25+
database: 5.*
26+
- laravel: 6.*
27+
testbench: 4.*
28+
database: 4.*
29+
- laravel: 5.8.*
30+
testbench: 3.8.*
31+
database: 3.8.*
1932
exclude:
33+
- laravel: 5.8.*
34+
php: 8.0
2035
- laravel: 6.*
2136
php: 7.1
37+
- laravel: 7.*
38+
php: 7.1
39+
- laravel: 8.*
40+
php: 7.1
41+
- laravel: 8.*
42+
php: 7.2
2243

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

@@ -27,16 +48,16 @@ jobs:
2748
uses: actions/checkout@v1
2849

2950
- name: Setup PHP
30-
uses: shivammathur/setup-php@v1
51+
uses: shivammathur/setup-php@v2
3152
with:
3253
php-version: ${{ matrix.php }}
3354
extension: mbstring, pdo, pdo_sqlite
3455
coverage: none
3556

3657
- name: Install dependencies
3758
run: |
38-
composer require "illuminate/contracts:${{ matrix.laravel }}" --no-interaction --no-update
59+
composer require "illuminate/contracts:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "orchestra/database:${{ matrix.database }}" --no-interaction --no-update
3960
composer install --prefer-dist --no-interaction --no-suggest
4061
4162
- name: Run tests
42-
run: vendor/bin/phpunit
63+
run: vendor/bin/phpunit --exclude-group skipped

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"illuminate/support": "^5.8 || ^6.0 || ^7.0 || ^8.0"
1515
},
1616
"require-dev": {
17-
"doctrine/dbal": "^2.10",
17+
"doctrine/dbal": "^2.9",
1818
"orchestra/database": "3.8.* || 3.9.* || ^4.0 || ^5.0",
1919
"orchestra/testbench": "3.8.* || 3.9.* || ^4.0 || ^6.0",
2020
"phpunit/phpunit": "^7.5 || ^8.4 || ^9.0"

tests/SushiTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,19 @@ function caches_sqlite_file_if_storage_cache_folder_is_available()
9898
);
9999
}
100100

101-
/** @test */
101+
/**
102+
* @test
103+
* @group skipped
104+
* */
102105
function uses_same_cache_between_requests()
103106
{
104107
$this->markTestSkipped("I can't find a good way to test this right now.");
105108
}
106109

107-
/** @test */
110+
/**
111+
* @test
112+
* @group skipped
113+
* */
108114
function use_same_cache_between_requests()
109115
{
110116
$this->markTestSkipped("I can't find a good way to test this right now.");

0 commit comments

Comments
 (0)