Skip to content

Commit a489b42

Browse files
authored
Merge pull request #112 from beyondcode/dev
2.1.0
2 parents 5e1d70b + ac1506d commit a489b42

File tree

3 files changed

+77
-20
lines changed

3 files changed

+77
-20
lines changed

.github/workflows/tests.yml

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

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
],
1818
"require": {
1919
"php": "^7.1 || ^8.0",
20-
"illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0|^10.0 || ^11.0"
20+
"illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0|^10.0 || ^11.0 || ^12.0"
2121
},
2222
"require-dev": {
2323
"laravel/legacy-factories": "^1.0",
24-
"orchestra/testbench": "^3.0 || ^4.0 || ^5.0 || ^6.0|^8.0 || ^9.0",
25-
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0 || ^10.5"
24+
"orchestra/testbench": "^3.0 || ^4.0 || ^5.0 || ^6.0|^8.0 || ^9.0 || ^10.0",
25+
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0 || ^10.5 || ^11.5.3"
2626
},
2727
"autoload": {
2828
"psr-4": {

phpunit.xml.dist

-17
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit bootstrap="vendor/autoload.php"
33
backupGlobals="false"
4-
backupStaticAttributes="false"
54
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
105
processIsolation="false"
116
stopOnFailure="false">
127
<testsuites>
138
<testsuite name="BeyondCode Test Suite">
149
<directory>tests</directory>
1510
</testsuite>
1611
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
22-
<logging>
23-
<log type="tap" target="build/report.tap"/>
24-
<log type="junit" target="build/report.junit.xml"/>
25-
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
26-
<log type="coverage-text" target="build/coverage.txt"/>
27-
<log type="coverage-clover" target="build/logs/clover.xml"/>
28-
</logging>
2912
</phpunit>

0 commit comments

Comments
 (0)