Skip to content

Commit d8115d7

Browse files
authored
Merge pull request #3 from Ghostscypher/dev
Add coverage test
2 parents 884840b + eb14f6c commit d8115d7

File tree

13 files changed

+430
-276
lines changed

13 files changed

+430
-276
lines changed

.github/workflows/pint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check & fix styling
1+
name: pint
22
on: [push]
33

44
jobs:

.github/workflows/run-tests.yml

Lines changed: 44 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,63 @@
11
name: run-tests
22
on:
3-
- push
4-
- pull_request
3+
workflow_run:
4+
workflows:
5+
- pint
6+
types:
7+
- completed
8+
9+
push:
10+
pull_request:
511

612
jobs:
713
test:
814
runs-on: ubuntu-latest
915
strategy:
1016
fail-fast: false
1117
matrix:
12-
php: [7.4, "8.0", 8.1, 8.2, 8.3]
18+
php: ["7.4", "8.0", "8.1", "8.2", "8.3"]
1319
laravel: ["7.*", 8.*', "9.*", "10.*", "11.*"]
1420
stability: [prefer-stable]
1521
include:
16-
- laravel: 11.*
17-
testbench: 9.*
18-
- laravel: 10.*
19-
testbench: 8.*
20-
- laravel: 9.*
21-
testbench: 7.*
22-
- laravel: 8.*
22+
- laravel: "11.*"
23+
testbench: "9.*"
24+
- laravel: "10.*"
25+
testbench: "8.*"
26+
- laravel: "9.*"
27+
testbench: "7.*"
28+
- laravel: "8.*"
2329
testbench: ^6.23
24-
carbon: ^2.63
25-
- laravel: 7.*
26-
testbench: 5.*
27-
carbon: ^2.63
30+
carbon: "^2.63"
31+
- laravel: "7.*"
32+
testbench: "5.*"
33+
carbon: "^2.63"
2834
exclude:
29-
- php: 8.1
30-
laravel: 7.*
31-
- php: 8.2
32-
laravel: 7.*
33-
- php: 8.3
34-
laravel: 7.*
35+
- php: "8.1"
36+
laravel: "7.*"
37+
- php: "8.2"
38+
laravel: "7.*"
39+
- php: "8.3"
40+
laravel: "7.*"
3541
- php: "8.0"
36-
laravel: 7.*
37-
- php: 8.1
38-
laravel: 8.*
39-
- php: 8.2
40-
laravel: 8.*
41-
- php: 8.3
42-
laravel: 8.*
43-
- php: 7.4
44-
laravel: 9.*
45-
- php: 7.4
46-
laravel: 10.*
42+
laravel: "7.*"
43+
- php: "8.1"
44+
laravel: "8.*"
45+
- php: "8.2"
46+
laravel: "8.*"
47+
- php: "8.3"
48+
laravel: "8.*"
49+
- php: "7.4"
50+
laravel: "9.*"
51+
- php: "7.4"
52+
laravel: "10.*"
4753
- php: "8.0"
48-
laravel: 10.*
49-
- php: 7.4
50-
laravel: 11.*
54+
laravel: "10.*"
55+
- php: "7.4"
56+
laravel: "11.*"
5157
- php: "8.0"
52-
laravel: 11.*
53-
- php: 8.1
54-
laravel: 11.*
58+
laravel: "11.*"
59+
- php: "8.1"
60+
laravel: "11.*"
5561

5662
name: PHP${{ matrix.php }} - Laravel_${{ matrix.laravel }} - ${{ matrix.stability }}
5763

@@ -97,7 +103,7 @@ jobs:
97103
run: |
98104
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
99105
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
100-
if: matrix.laravel == '7.*' || matrix.laravel == '8.*' && matrix.php != ''
106+
if: (matrix.laravel == '7.*' || matrix.laravel == '8.*') && matrix.php != ''
101107

102108
- name: Execute tests
103109
run: vendor/bin/pest

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
"spatie/laravel-package-tools": "^1.0"
3939
},
4040
"require-dev": {
41+
"irazasyed/docgen": "^0.2.0",
4142
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0",
4243
"pestphp/pest": "^1.0 |^2.0",
43-
"pestphp/pest-plugin-laravel": "^1.0|^2.0",
44-
"phpunit/phpunit": "^6.0|^7.0|^9.0|^10.0|^11.0"
44+
"pestphp/pest-plugin-laravel": "^1.0|^2.0"
4545
},
4646
"autoload": {
4747
"psr-4": {

0 commit comments

Comments
 (0)