Skip to content

Commit 4bdb9b4

Browse files
committed
wip
1 parent 1912f94 commit 4bdb9b4

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

.github/workflows/run-tests.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,27 @@
11
name: run-tests
22

3-
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
3+
on: [push]
84

95
jobs:
106
test:
11-
runs-on: [ubuntu-latest]
7+
8+
runs-on: ubuntu-latest
129
strategy:
1310
fail-fast: false
1411
matrix:
15-
php: [8.1, 8.0, 7.4]
16-
laravel: [8.*]
17-
stability: [prefer-lowest, prefer-stable]
12+
php: [7.4, 8.0, 8.1]
13+
laravel: [9.*, 8.*]
14+
dependency-version: [prefer-lowest, prefer-stable]
1815
include:
1916
- laravel: 9.*
20-
testbench: 7.*
17+
testbench: ^7.0
2118
- laravel: 8.*
2219
testbench: ^6.23
2320
exclude:
2421
- laravel: 9.*
2522
php: 7.4
2623

27-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
24+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2825

2926
steps:
3027
- name: Checkout code
@@ -34,19 +31,18 @@ jobs:
3431
uses: shivammathur/setup-php@v2
3532
with:
3633
php-version: ${{ matrix.php }}
37-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
34+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
3835
coverage: none
3936

40-
- name: Setup problem matchers
41-
run: |
42-
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
43-
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
44-
4537
- name: Install dependencies
4638
run: |
4739
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
48-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
40+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
41+
42+
- name: Setup Problem Matches
43+
run: |
44+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
45+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4946
5047
- name: Execute tests
5148
run: vendor/bin/phpunit
52-

0 commit comments

Comments
 (0)