-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (37 loc) · 1.11 KB
/
java-ci.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
name: Java CI Build, Unit and Integration Tests
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build, Unit and Integration Tests
run: ./gradlew build test integrationTest jacocoTestReport sonarqube
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
check_name: Gradle Unit and Integration Test Results
files: build/test-results/**/*.xml
- name: Upload Unit Test Results
uses: actions/upload-artifact@v4
if: failure()
with:
name: Unit Test Results
path: build/reports/tests/test/
- name: Upload Integration Test Results
uses: actions/upload-artifact@v4
if: failure()
with:
name: Integration Test Results
path: build/reports/tests/integrationTest/