Skip to content

Commit 3080030

Browse files
debug: separate all sql in github actions
1 parent 7d40af6 commit 3080030

5 files changed

+74
-53
lines changed

.github/workflows/tests-for-databases.yml

+3-50
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
name: tests-for-databases
1+
name: tests-for-sql-server
22

33
on:
44
push:
55
paths:
66
- "**.php"
77
- ".github/workflows/tests-for-laravel-versions.yml"
8-
- ".github/workflows/tests-for-databases.yml"
8+
- ".github/workflows/tests-for-sql-server.yml"
9+
- ".github/workflows/tests-for-postgres.yml"
910
- ".github/workflows/test-for-mariadb.yml"
1011
- ".github/workflows/tests-for-mysql.yml"
1112
- "phpunit.xml.dist"
@@ -14,54 +15,6 @@ on:
1415
workflow_dispatch:
1516

1617
jobs:
17-
pgsql:
18-
runs-on: ubuntu-24.04
19-
20-
services:
21-
postgresql:
22-
image: postgres:14
23-
env:
24-
POSTGRES_DB: laravel
25-
POSTGRES_USER: forge
26-
POSTGRES_PASSWORD: password
27-
ports:
28-
- 5432:5432
29-
options: --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=3
30-
31-
strategy:
32-
fail-fast: true
33-
34-
name: PostgreSQL 14
35-
36-
steps:
37-
- name: Checkout code
38-
uses: actions/checkout@v4
39-
40-
- name: Setup PHP
41-
uses: shivammathur/setup-php@v2
42-
with:
43-
php-version: 8.2
44-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, :php-psr
45-
tools: composer:v2
46-
coverage: none
47-
48-
- name: Set Framework version
49-
run: composer config version "11.x-dev"
50-
51-
- name: Install dependencies
52-
uses: nick-fields/retry@v3
53-
with:
54-
timeout_minutes: 5
55-
max_attempts: 5
56-
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
57-
58-
- name: Execute tests
59-
run: vendor/bin/phpunit
60-
env:
61-
DB_CONNECTION: pgsql
62-
DB_USERNAME: forge
63-
DB_PASSWORD: password
64-
6518
mssql:
6619
runs-on: ubuntu-20.04
6720

.github/workflows/tests-for-laravel-versions.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ on:
55
paths:
66
- "**.php"
77
- ".github/workflows/tests-for-laravel-versions.yml"
8-
- ".github/workflows/tests-for-databases.yml"
8+
- ".github/workflows/tests-for-sql-server.yml"
9+
- ".github/workflows/tests-for-postgres.yml"
910
- ".github/workflows/test-for-mariadb.yml"
11+
- ".github/workflows/tests-for-mysql.yml"
1012
- "phpunit.xml.dist"
1113
- "composer.json"
1214
- "composer.lock"

.github/workflows/tests-for-mariadb.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
paths:
66
- "**.php"
77
- ".github/workflows/tests-for-laravel-versions.yml"
8-
- ".github/workflows/tests-for-databases.yml"
8+
- ".github/workflows/tests-for-sql-server.yml"
9+
- ".github/workflows/tests-for-postgres.yml"
910
- ".github/workflows/test-for-mariadb.yml"
1011
- ".github/workflows/tests-for-mysql.yml"
1112
- "phpunit.xml.dist"

.github/workflows/tests-for-mysql.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
paths:
66
- "**.php"
77
- ".github/workflows/tests-for-laravel-versions.yml"
8-
- ".github/workflows/tests-for-databases.yml"
8+
- ".github/workflows/tests-for-sql-server.yml"
9+
- ".github/workflows/tests-for-postgres.yml"
910
- ".github/workflows/test-for-mariadb.yml"
1011
- ".github/workflows/tests-for-mysql.yml"
1112
- "phpunit.xml.dist"
+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: tests-for-postgres
2+
3+
on:
4+
push:
5+
paths:
6+
- "**.php"
7+
- ".github/workflows/tests-for-laravel-versions.yml"
8+
- ".github/workflows/tests-for-sql-server.yml"
9+
- ".github/workflows/tests-for-postgres.yml"
10+
- ".github/workflows/test-for-mariadb.yml"
11+
- ".github/workflows/tests-for-mysql.yml"
12+
- "phpunit.xml.dist"
13+
- "composer.json"
14+
- "composer.lock"
15+
workflow_dispatch:
16+
17+
jobs:
18+
pgsql:
19+
runs-on: ubuntu-24.04
20+
21+
services:
22+
postgresql:
23+
image: postgres:14
24+
env:
25+
POSTGRES_DB: laravel
26+
POSTGRES_USER: forge
27+
POSTGRES_PASSWORD: password
28+
ports:
29+
- 5432:5432
30+
options: --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=3
31+
32+
strategy:
33+
fail-fast: true
34+
35+
name: PostgreSQL 14
36+
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v4
40+
41+
- name: Setup PHP
42+
uses: shivammathur/setup-php@v2
43+
with:
44+
php-version: 8.2
45+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, :php-psr
46+
tools: composer:v2
47+
coverage: none
48+
49+
- name: Set Framework version
50+
run: composer config version "11.x-dev"
51+
52+
- name: Install dependencies
53+
uses: nick-fields/retry@v3
54+
with:
55+
timeout_minutes: 5
56+
max_attempts: 5
57+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
58+
59+
- name: Execute tests
60+
run: vendor/bin/phpunit
61+
env:
62+
DB_CONNECTION: pgsql
63+
DB_USERNAME: forge
64+
DB_PASSWORD: password

0 commit comments

Comments
 (0)