Skip to content

Commit ee9adae

Browse files
committed
wip
1 parent 2afa02a commit ee9adae

File tree

2 files changed

+73
-3
lines changed

2 files changed

+73
-3
lines changed

.github/workflows/tests.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: run-tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
php-tests:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
php: ['8.4', '8.3', '8.2', '8.1', '8.0']
19+
laravel: ['8.*', '9.*', '10.*', '11.*', '12.*']
20+
dependency-version: [prefer-stable]
21+
exclude:
22+
- php: 8.0
23+
laravel: 10.*
24+
- php: 8.0
25+
laravel: 11.*
26+
- php: 8.0
27+
laravel: 12.*
28+
- php: 8.1
29+
laravel: 11.*
30+
- php: 8.1
31+
laravel: 12.*
32+
- php: 8.2
33+
laravel: 8.*
34+
- php: 8.3
35+
laravel: 8.*
36+
- php: 8.4
37+
laravel: 8.*
38+
include:
39+
- laravel: 8.*
40+
testbench: 6.23
41+
- laravel: 9.*
42+
testbench: 7.*
43+
- laravel: 10.*
44+
testbench: 8.*
45+
- laravel: 11.*
46+
testbench: 9.*
47+
- laravel: 12.*
48+
testbench: 10.*
49+
50+
51+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ubuntu-latest
52+
53+
steps:
54+
- name: Checkout code
55+
uses: actions/checkout@v4
56+
57+
- name: Setup PHP
58+
uses: shivammathur/setup-php@v2
59+
with:
60+
php-version: ${{ matrix.php }}
61+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
62+
coverage: none
63+
64+
- name: Install dependencies
65+
run: |
66+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
67+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
68+
69+
- name: Execute tests
70+
run: vendor/bin/phpunit

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.3 || ^8.0",
19+
"php": " ^8.0",
2020
"doctrine/dbal": "^2.0|^3.0",
2121
"fakerphp/faker": "^1.13",
22-
"illuminate/console": "^7.0|^8.0|^9.0|^10.0 || ^11.0",
23-
"illuminate/support": "^7.0|^8.0|^9.0|^10.0 || ^11.0"
22+
"illuminate/console": "^8.0|^9.0|^10.0 || ^11.0",
23+
"illuminate/support": "^8.0|^9.0|^10.0 || ^11.0"
2424
},
2525
"require-dev": {
2626
"orchestra/testbench": "^6.12|^7.0|^8.0 || ^9.0",

0 commit comments

Comments
 (0)