We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 06c8651 + 9cd92da commit b6168ccCopy full SHA for b6168cc
1 file changed
.github/workflows/frontcicd.yml
@@ -26,6 +26,34 @@ jobs:
26
- name: Build Angular app
27
run: npm run build
28
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
57
58
gh-pages-deploy:
59
runs-on: ubuntu-latest
0 commit comments