-
Notifications
You must be signed in to change notification settings - Fork 181
44 lines (44 loc) · 1.38 KB
/
ci-prb.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
name: PR Builder
on:
pull_request:
branches: [ main, '0.41', '0.42' ]
jobs:
build:
name: Build JDK ${{ matrix.java }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [ 8, 11, 17 ]
os: [ ubuntu-latest ]
steps:
- name: Checkout Code
uses: actions/checkout@v2.4.0
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
cache: 'gradle'
- name: Print JDK Version
run: java -version
- name: Make gradlew Executable
run: chmod +x gradlew
# https://github.community/t/error-the-paging-file-is-too-small-for-this-operation-to-complete/17141
- name: Configure Windows Pagefile
if: ${{ runner.os == 'Windows' }}
# v1.2
uses: al-cheb/configure-pagefile-action@7e234852c937eea04d6ee627c599fb24a5bfffee
with:
minimum-size: 8GB
maximum-size: 16GB
- name: Build and Test
env:
CI: true
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
run: ./gradlew --parallel clean test
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: test-results-${{ matrix.os }}-${{ matrix.java }}
path: '**/build/test-results/test/TEST-*.xml'