44 lines (41 loc) · 1.22 KB
/
subflow_test.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: Build and Test
env:
JAVA_VERSION: '17'
JAVA_DISTRIBUTION: 'adopt'
on:
workflow_dispatch:
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3.3.0
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
cache: 'maven'
- uses: actions/setup-node@v3.3.0
with:
node-version-file: 'frontend/src/main/webapp/.nvmrc'
cache: 'npm'
cache-dependency-path: 'frontend/src/main/webapp/package-lock.json'
- name: Run tests
run: ./mvnw --fail-at-end test verify
- uses: actions/upload-artifact@v3
if: always()
with:
name: backend-codecoverage-reports
path: |
./backend/**/target/site/jacoco/
./backend/modules/**/target/site/jacoco/
if-no-files-found: error
retention-days: 14
- uses: actions/upload-artifact@v3
if: always()
with:
name: frontend-codecoverage-report
path: ./frontend/src/main/webapp/coverage/
if-no-files-found: error
retention-days: 14