-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 972 Bytes
/
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: CI
on: push
jobs:
run_tests:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Give gradlew execute permission
run: chmod +x ./gradlew
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build and test
run: ./gradlew check --info
- name: Publish Test Report
uses: mikepenz/action-junit-report@v2
if: always() # always run even if the previous step fails
with:
report_paths: '**/test-results/*/*.xml'
# - name: Junit Report
# uses: allegro-actions/junit-reporter@v1
# if: ${{ success() || failure() }}
# with:
# path: '**/test-results/*/*.xml'