Skip to content

Commit 1a38979

Browse files
authored
Update run-tests.yml
1 parent 7c4ac9b commit 1a38979

File tree

1 file changed

+49
-6
lines changed

1 file changed

+49
-6
lines changed

.github/workflows/run-tests.yml

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ on:
99
- cron: '0 0 * * *'
1010

1111
jobs:
12-
test:
13-
runs-on: ${{ matrix.os }}
12+
ubuntu:
13+
runs-on: ubuntu-latest
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
os: [ubuntu-latest, windows-latest]
18-
php: [8.1]
19-
laravel: [8, 9, 10]
17+
php: [8.1, 8.2, 8.3]
18+
laravel: [10, 11]
2019
coverage-driver: [pcov]
2120
stability: [prefer-lowest, prefer-stable]
21+
exclude:
22+
- laravel: '11'
23+
php: 8.1
2224

23-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
25+
name: Ubuntu P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
2426

2527
steps:
2628
- name: Checkout code
@@ -48,3 +50,44 @@ jobs:
4850

4951
- name: Send code coverage report to Codecov.io
5052
uses: codecov/codecov-action@v4
53+
windows:
54+
runs-on: windows-latest
55+
strategy:
56+
fail-fast: true
57+
matrix:
58+
php: [8.1, 8.2, 8.3]
59+
laravel: [10, 11]
60+
coverage-driver: [pcov]
61+
stability: [prefer-lowest, prefer-stable]
62+
exclude:
63+
- laravel: '11'
64+
php: 8.1
65+
66+
name: Windows P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
67+
68+
steps:
69+
- name: Checkout code
70+
uses: actions/checkout@v4
71+
72+
- name: Setup PHP
73+
uses: shivammathur/setup-php@v2
74+
with:
75+
php-version: ${{ matrix.php }}
76+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
77+
coverage: ${{ matrix.coverage-driver }}
78+
79+
- name: Setup problem matchers
80+
run: |
81+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
82+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
83+
84+
- name: Install dependencies
85+
run: |
86+
composer require "illuminate/contracts=${{ matrix.testbench }}.*" --no-interaction --no-update
87+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
88+
89+
- name: Execute tests
90+
run: vendor/bin/phpunit --coverage-clover=coverage.xml
91+
92+
- name: Send code coverage report to Codecov.io
93+
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)