-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (50 loc) · 1.35 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
checks: write
pull-requests: write
jobs:
build:
strategy:
fail-fast: false
matrix:
# Alternative for testing on multiple platforms. Ubuntu runs the quickest with the latest JVM.
# os: [ubuntu-latest, windows-latest, macos-latest]
# java-version: [11, 17]
os: [ ubuntu-latest ]
java-version: [ 20 ]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: adopt-hotspot
java-version: ${{ matrix.java-version }}
- run: ./gradlew --info build
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: Test results
retention-days: 20
path: |
**/TEST-*
**/hs_err_pid*
# taken from: https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#support-fork-repositories-and-dependabot-branches
event_file:
name: "Event File"
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Event File
path: ${{ github.event_path }}