Skip to content

Commit d4f6334

Browse files
committed
Test both Laravel 9 and 10
1 parent f0a3e50 commit d4f6334

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ jobs:
99
# Don't run the tests on internal PRs
1010
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
1111

12-
name: PHP ${{ matrix.php }}
12+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
1313
runs-on: 'ubuntu-latest'
1414

1515
strategy:
1616
matrix:
1717
php:
1818
- "8.1"
1919
- "8.2"
20+
laravel:
21+
- "9"
22+
- "10"
2023

2124
env:
2225
extensions: ctype, dom, grpc, json, mbstring, openssl, xml, zip, zlib
@@ -49,15 +52,15 @@ jobs:
4952
tools: composer, pecl
5053
coverage: xdebug
5154

52-
- uses: "ramsey/composer-install@v2"
53-
with:
54-
composer-options: "${{ matrix.composer-options }}"
55-
56-
- name: Setup problem matchers for PHP
57-
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
55+
- name: Install dependencies
56+
run: |
57+
composer require -W "illuminate/contracts:^${{ matrix.laravel }}.0"
58+
composer require -W --dev orchestra/testbench
5859
59-
- name: Setup Problem Matchers for PHPUnit
60-
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
60+
- name: Setup Problem Matchers
61+
run: |
62+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
63+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
6164
6265
- name: Run PHPUnit
6366
run: vendor/bin/phpunit --coverage-clover=coverage.xml --log-junit=test-report.xml --testdox

0 commit comments

Comments
 (0)