-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (42 loc) · 1.32 KB
/
test_backend.yml
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
41
42
43
44
name: "Test Backend"
on:
push:
branches:
# Always run on protected branches
- master
- develop
- release
pull_request:
paths:
- "backend/**"
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
overwrite-settings: false
- name: Build Backend
run: mvn -T 1C install -pl backend -DskipTests -am
- name: Unit Test
run: mvn test -T 1C -pl backend -DexcludedGroups="INTEGRATION_PROGRAMMATIC, INTEGRATION_JSON, INTEGRATION_SQL_BACKEND"
- name: Programmatic Integration Tests
run: mvn test -T 1C -pl backend -Dgroups="INTEGRATION_PROGRAMMATIC"
- name: JSON based Integration Tests
run: mvn test -T 1C -pl backend -Dgroups="INTEGRATION_JSON"
- name: SQL based Integration Tests
run: mvn test -T 1C -pl backend -Dgroups="INTEGRATION_SQL_BACKEND"