forked from hapifhir/hapi-fhir-jpaserver-starter
-
Notifications
You must be signed in to change notification settings - Fork 21
46 lines (40 loc) · 1.18 KB
/
maven.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
45
46
# This workflow will build and test a Java project with Maven
name: Unit tests
on:
workflow_dispatch:
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the project
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
# https://github.com/actions/setup-java#usage
with:
java-version: 21
distribution: adopt
cache: maven
- name: Run the tests in Maven
timeout-minutes: 15
# We need a timeout here
env:
MAVEN_OPTS: -Xmx12g
run: mvn --batch-mode --no-transfer-progress --update-snapshots verify
- uses: actions/upload-artifact@v4
if: failure()
with:
name: testresults
path: |
./matchbox-server/target/surefire-reports
./matchbox-engine/target/surefire-reports
retention-days: 2
- name: Test Summary
uses: test-summary/action@v2
with:
paths: |
matchbox-engine/target/surefire-reports/TEST-*.xml
matchbox-server/target/surefire-reports/TEST-*.xml
if: always()