-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (34 loc) · 1005 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
name: Build Gradle project
on:
push:
jobs:
build-gradle-project:
runs-on: ubuntu-22.04
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew build
- name: Archive reports on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: Dependency Verification Report
path: build/reports/dependency-verification
- name: Report unit test results
uses: dorny/[email protected]
if: always()
with:
name: JUnit Tests
path: build/test-results/**/*.xml
reporter: java-junit
fail-on-error: true