Skip to content

Commit ae38eb9

Browse files
[fix] Initial attempt at conditional testing
1 parent df47c74 commit ae38eb9

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@ on:
99
jobs:
1010
tests:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
testbench: ['^6.12', '^7.19']
16+
name: Testbench ${{ matrix.testbench }}
1217
steps:
1318
- uses: actions/checkout@v2
1419
- name: Install Dependencies
1520
run: php /usr/bin/composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
21+
- name: Install Testbench
22+
run: php /usr/bin/composer require -q --dev --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist orchestra/testbench:${{ matrix.testbench }}
1623
- name: Execute tests via PHPUnit
1724
run: php vendor/bin/phpunit --stop-on-failure

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"minimum-stability": "dev",
4646
"prefer-stable": true,
4747
"require-dev": {
48-
"orchestra/testbench": "^7.19",
48+
"orchestra/testbench": "^6.12",
4949
"phpunit/phpunit": "^9.5"
5050
}
5151
}

tests/Feature/ExportPostmanWithCacheTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99
class ExportPostmanWithCacheTest extends TestCase
1010
{
1111
use \Orchestra\Testbench\Concerns\HandlesRoutes;
12-
use \Orchestra\Testbench\Concerns\InteractsWithPublishedFiles;
13-
14-
protected $files = [
15-
'routes/testbench.php',
16-
'bootstrap/cache/routes-v7.php',
17-
];
1812

1913
protected function setUp(): void
2014
{

0 commit comments

Comments
 (0)