-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 915 Bytes
/
main.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: Java
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up JDK 20
uses: actions/setup-java@v2
with:
java-version: '20'
distribution: 'adopt'
- name: Grant Permissions to gradlew
run: chmod +x gradlew
- name: Build
run: ./gradlew build -x test
- name: Test
run: ./gradlew test --continue
# - name: Report
# uses: dorny/test-reporter@v1
# if: always()
# with:
# name: Maven Tests
# path: '**/build/test-results/TEST-*.xml'
# reporter: java-junit
# fail-on-error: true
- name: Upload test report
uses: actions/upload-artifact@v2
with:
name: test-case reports
path: build/test-results