-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 843 Bytes
/
gradle.yml
File metadata and controls
31 lines (29 loc) · 843 Bytes
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
name: Build Gradle project
on: push
jobs:
build-gradle-project:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- name: Run build with Gradle Wrapper
run: ./gradlew --info build -PgearHeads.testJvmArg='-XX:ErrorFile=${{ github.workspace }}/hs_err_pid%p.log'
- name: Archive test artifacts
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-logs
path: |
*/build/reports/tests/test
hs_err_pid*.log
if-no-files-found: ignore