Skip to content

Commit 2a05502

Browse files
committed
added virtual build for postgres
1 parent 4d34724 commit 2a05502

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,29 @@ jobs:
9797
- name: Run tests with postgres
9898
run: mvn test -pl core -am -Dspring.profiles.active=postgres
9999

100+
test-postgres-virtual:
101+
runs-on: ubuntu-latest
102+
needs: build
103+
services:
104+
postgres:
105+
image: postgres
106+
options: --name pg-container
107+
env:
108+
POSTGRES_USER: sa
109+
POSTGRES_PASSWORD: veryStrong123
110+
ports:
111+
- 5432:5432
112+
steps:
113+
- uses: actions/checkout@v4
114+
- name: Set up JDK 21
115+
uses: actions/setup-java@v4
116+
with:
117+
java-version: "21"
118+
distribution: "temurin"
119+
cache: maven
120+
- name: Run tests with postgres
121+
run: mvn test -pl core -am -Dspring.profiles.active=postgres,virtual-thread
122+
100123
test-mariadb:
101124
runs-on: ubuntu-latest
102125
needs: build
@@ -123,7 +146,7 @@ jobs:
123146

124147
all-tests:
125148
runs-on: ubuntu-latest
126-
needs: [test-mssql, test-mssql-virtual, test-mariadb, test-postgres]
149+
needs: [test-mssql, test-mssql-virtual, test-mariadb, test-postgres, test-postgres-virtual]
127150
steps:
128151
- name: All test done
129152
run: echo "All test succeeded."

0 commit comments

Comments
 (0)