-
Notifications
You must be signed in to change notification settings - Fork 11
45 lines (43 loc) · 1.33 KB
/
tests.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
name: tests
on: push
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install libreoffice
run: sudo apt update && sudo apt-get install -y libreoffice
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Build and test REST example
uses: gradle/gradle-build-action@v2
with:
arguments: :samples:spring-boot-rest:test
- name: Report
uses: dorny/[email protected]
if: always()
with:
name: Tests Results REST
path: "samples/spring-boot-rest/**/test-results/**/TEST*.xml"
reporter: java-junit
fail-on-error: false
- name: Build and test WEBAPP example
uses: gradle/gradle-build-action@v2
with:
arguments: :samples:spring-boot-webapp:test
- name: Report
uses: dorny/[email protected]
if: always()
with:
name: Tests Results WEBAPP
path: "samples/spring-boot-webapp/**/test-results/**/TEST*.xml"
reporter: java-junit
fail-on-error: false
- name: Build and Basic WebApp
uses: gradle/gradle-build-action@v2
with:
arguments: :samples:basic-webapp:build