Skip to content

Commit 35b27cc

Browse files
rootroot
root
authored and
root
committed
update test
1 parent 72b8e3d commit 35b27cc

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

.github/workflows/run-tests.yml

+29-2
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,18 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
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.*']
1717
stability: [prefer-lowest, prefer-stable]
1818
include:
1919
- laravel: 10.*
2020
- laravel: 11.*
21+
- laravel: 12.*
2122
exclude:
2223
- laravel: 11.*
2324
php: 8.1
25+
- laravel: 12.*
26+
php: 8.1
2427

2528
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2629

@@ -35,6 +38,20 @@ jobs:
3538
ports:
3639
- 3306
3740
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+
3855
redis:
3956
image: redis
4057
ports:
@@ -72,6 +89,16 @@ jobs:
7289
DB_PORT: ${{ job.services.mysql.ports[3306] }}
7390
REDIS_PORT: 6379
7491

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+
75102
- name: Execute tests with SQLite
76103
run: vendor/bin/pest
77104
env:

0 commit comments

Comments
 (0)