-
Notifications
You must be signed in to change notification settings - Fork 850
64 lines (61 loc) · 1.8 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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
name: Rhino Tests
steps:
- name: Check out Rhino
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
# By putting JVMs in reverse order, the last one is the one that
# will go in the path.
with:
java-version: |
11
17
21
distribution: 'adopt'
- name: Build and test Java 21
run: >-
./gradlew check
- name: Upload results Java 21
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
if: ${{ always() }}
with:
name: reports-java-21
path: '*/build/reports'
- name: Build and test Java 17
env:
RHINO_TEST_JAVA_VERSION: "17"
run: >-
./gradlew check
- name: Upload results Java 17
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
if: ${{ always() }}
with:
name: reports-java-17
path: '*/build/reports'
- name: Build and test Java 11
env:
RHINO_TEST_JAVA_VERSION: "11"
run: >-
./gradlew check
- name: Upload results Java 11
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
if: ${{ always() }}
with:
name: reports-java-11
path: '*/build/reports'