-
Notifications
You must be signed in to change notification settings - Fork 467
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:
- dev3
pull_request:
branches:
- dev3
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: [ 17 ]
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/[email protected]
if: always()
with:
name: Event File
retention-days: 21
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@v2
with:
name: Event File
path: ${{ github.event_path }}