-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 945 Bytes
/
build.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
name: Build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
if: |
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup jdk
uses: actions/setup-java@v3
with:
java-version: 17
cache: gradle
distribution: temurin
- name: Build with gradle
run: ./gradlew build coverage
- name: Upload build reports
uses: actions/upload-artifact@v3
if: always()
with:
name: build-reports
retention-days: 7
path: |
**/build/test-results/*/TEST-*.xml
**/build/reports/jacoco/*/*.xml