Skip to content

Commit b6168cc

Browse files
authored
Merge branch 'main' into nlauvray-patch-1
2 parents 06c8651 + 9cd92da commit b6168cc

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/frontcicd.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,34 @@ jobs:
2626
- name: Build Angular app
2727
run: npm run build
2828
working-directory: ./
29+
test:
30+
runs-on: ubuntu-latest
31+
services:
32+
postgres:
33+
image: postgres:latest
34+
env:
35+
POSTGRES_USER: sanalyz
36+
POSTGRES_PASSWORD: sanalyz
37+
POSTGRES_DB: sanalyz
38+
ports:
39+
- 5432:5432
40+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
41+
42+
steps:
43+
- name: Checkout code
44+
uses: actions/checkout@v3
45+
46+
- name: Set up JDK 21
47+
uses: actions/setup-java@v3
48+
with:
49+
java-version: '21'
50+
distribution: 'temurin'
51+
cache: 'maven'
52+
53+
- name: Run tests
54+
run: mvn test
55+
working-directory: ./API
56+
2957

3058
gh-pages-deploy:
3159
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)