-
Notifications
You must be signed in to change notification settings - Fork 850
51 lines (47 loc) · 1.68 KB
/
gradle.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
name: Rhino CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
strategy:
# Some tests require more CPU, and all can use multiple CPUs
max-parallel: 1
matrix:
java: [ '8', '11', '17' ]
name: Rhino Java ${{ matrix.java }}
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
# Need all history or spotless check will fail
fetch-depth: 0
- name: Check out test262
# We don't actually want all the history for this part
run: git submodule update --init --single-branch
- name: Set up Java
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- if: matrix.java == '8'
name: Check everything with Gradle on Java 8
run: ./gradlew check jacocoTestReport
- if: matrix.java != '8'
name: Check everything with Gradle, modular Java
run: >-
./gradlew check jacocoTestReport
-Dorg.gradle.jvmargs="--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"
- name: Upload results
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: reports
path: buildGradle/reports