Skip to content

Commit 9b0f33b

Browse files
authored
added postgres
1 parent ac1417a commit 9b0f33b

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
MSSQL_SA_PASSWORD: "veryStrong123"
4141
ports:
4242
- 1433:1433
43-
4443
steps:
4544
- uses: actions/checkout@v4
4645
- name: Set up JDK 21
@@ -49,9 +48,31 @@ jobs:
4948
java-version: '21'
5049
distribution: 'temurin'
5150
cache: maven
52-
- name: Run Tests with MSSQL
51+
- name: Run tests with MSSQL
5352
run: mvn test -pl core -am -Dspring.profiles.active=mssql
5453

54+
test-postgres:
55+
runs-on: ubuntu-latest
56+
needs: build
57+
services:
58+
postgres:
59+
image: postgres
60+
options: --name pg-container
61+
env:
62+
POSTGRES_USER: sa
63+
POSTGRES_PASSWORD: veryStrong123
64+
ports:
65+
- 5432:5432
66+
steps:
67+
- uses: actions/checkout@v4
68+
- name: Set up JDK 21
69+
uses: actions/setup-java@v4
70+
with:
71+
java-version: '21'
72+
distribution: 'temurin'
73+
cache: maven
74+
- name: Run tests with postgres
75+
run: mvn test -pl core -am -Dspring.profiles.active=postgres
5576

5677
java-doc:
5778
runs-on: ubuntu-latest
@@ -84,7 +105,7 @@ jobs:
84105

85106
maven-deploy:
86107
runs-on: ubuntu-latest
87-
needs: [build, test-mssql]
108+
needs: [build, test-mssql, test-postgres]
88109
if: ${{ github.ref == 'refs/heads/main' }}
89110
steps:
90111
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)