-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1021 Bytes
/
backend-tests.yml
File metadata and controls
40 lines (32 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Backend tests
on:
workflow_call:
permissions: write-all
jobs:
run-backend-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: '21'
- name: Run User Service tests
working-directory: ./server/userservice
run: ./gradlew test
- name: Run Mentorship Service tests
working-directory: ./server/mentorshipservice
run: ./gradlew test
- name: Run Rating Service tests
working-directory: ./server/ratingservice
run: ./gradlew test
- name: Upload backend test reports
uses: actions/upload-artifact@v4
with:
name: backend-test-reports
path: |
server/userservice/build/reports/tests/test
server/mentorshipservice/build/reports/tests/test
server/ratingservice/build/reports/tests/test