File tree 3 files changed +56
-11
lines changed
3 files changed +56
-11
lines changed Original file line number Diff line number Diff line change
1
+ name : run-tests
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ schedule :
7
+ - cron : " 0 0 * * *"
8
+
9
+ jobs :
10
+ run-tests :
11
+ runs-on : ${{ matrix.os }}
12
+
13
+ services :
14
+ greenmail :
15
+ image : greenmail/standalone:latest
16
+ env :
17
+ GREENMAIL_OPTS : -Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.auth.disabled -Dgreenmail.verbose
18
+ ports :
19
+ - 3143:3143
20
+
21
+ strategy :
22
+ fail-fast : false
23
+ matrix :
24
+ os : [ ubuntu-latest ]
25
+ php : [ 8.3, 8.2, 8.1 ]
26
+ dependency-version : [ prefer-stable ]
27
+
28
+ name : ${{ matrix.os }} - P${{ matrix.php }} - ${{ matrix.dependency-version }}
29
+
30
+ steps :
31
+ - name : Checkout code
32
+ uses : actions/checkout@v4
33
+
34
+ - name : Cache dependencies
35
+ uses : actions/cache@v4
36
+ with :
37
+ path : ~/.composer/cache/files
38
+ key : dependencies-laravel-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
39
+
40
+ - name : Setup PHP
41
+ uses : shivammathur/setup-php@v2
42
+ with :
43
+ php-version : ${{ matrix.php }}
44
+
45
+ - name : Install dependencies
46
+ run : |
47
+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
48
+
49
+ - name : Execute tests
50
+ run : vendor/bin/pest --testsuite Integration
Original file line number Diff line number Diff line change 10
10
run-tests :
11
11
runs-on : ${{ matrix.os }}
12
12
13
- services :
14
- greenmail :
15
- image : greenmail/standalone:latest
16
- env :
17
- GREENMAIL_OPTS : -Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.auth.disabled -Dgreenmail.verbose
18
- ports :
19
- - 3143:3143
20
-
21
13
strategy :
22
14
fail-fast : false
23
15
matrix :
47
39
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
48
40
49
41
- name : Execute tests
50
- run : vendor/bin/pest
42
+ run : vendor/bin/pest --testsuite Unit
Original file line number Diff line number Diff line change 5
5
colors =" true"
6
6
>
7
7
<testsuites >
8
- <testsuite name =" Test Suite" >
9
- <directory suffix =" Test.php" >./tests</directory >
8
+ <testsuite name =" Unit" >
9
+ <directory suffix =" Test.php" >./tests/Unit</directory >
10
+ </testsuite >
11
+ <testsuite name =" Integration" >
12
+ <directory suffix =" Test.php" >./tests/Integration</directory >
10
13
</testsuite >
11
14
</testsuites >
12
15
<source >
You can’t perform that action at this time.
0 commit comments