File tree 1 file changed +29
-2
lines changed
1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,18 @@ jobs:
12
12
fail-fast : false
13
13
matrix :
14
14
os : [ubuntu-latest]
15
- php : [8.1, ' 8.2' ]
16
- laravel : ['10.*', '11.*']
15
+ php : [8.1, 8.2, 8.3, 8.4 ]
16
+ laravel : ['10.*', '11.*', '12.*' ]
17
17
stability : [prefer-lowest, prefer-stable]
18
18
include :
19
19
- laravel : 10.*
20
20
- laravel : 11.*
21
+ - laravel : 12.*
21
22
exclude :
22
23
- laravel : 11.*
23
24
php : 8.1
25
+ - laravel : 12.*
26
+ php : 8.1
24
27
25
28
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
26
29
35
38
ports :
36
39
- 3306
37
40
options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
41
+
42
+ postgres :
43
+ image : postgres:17-alpine
44
+ restart : unless-stopped
45
+ healthcheck :
46
+ test : ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
47
+ interval : 10s
48
+ timeout : 5s
49
+ retries : 5
50
+ environment :
51
+ POSTGRES_DB : query_test
52
+ POSTGRES_USER : user
53
+ POSTGRES_PASSWORD : secret
54
+
38
55
redis :
39
56
image : redis
40
57
ports :
72
89
DB_PORT : ${{ job.services.mysql.ports[3306] }}
73
90
REDIS_PORT : 6379
74
91
92
+ - name : Execute tests with PostgreSQL
93
+ run : vendor/bin/pest
94
+ env :
95
+ DB_CONNECTION : pgsql
96
+ DB_DATABASE : query_test
97
+ DB_USERNAME : user
98
+ DB_PASSWORD : secret
99
+ DB_PORT : ${{ job.services.postgres.ports[5432] }}
100
+ REDIS_PORT : 6379
101
+
75
102
- name : Execute tests with SQLite
76
103
run : vendor/bin/pest
77
104
env :
You can’t perform that action at this time.
0 commit comments