Skip to content

Try a different strategy for Java versions #1095

Try a different strategy for Java versions

Try a different strategy for Java versions #1095

Workflow file for this run

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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.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@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
with:
java-version: |
21
17
11
distribution: 'adopt'
- name: Build and test Java 11
run: >-
./gradlew check
- name: Upload results Java 11
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: reports-java-11
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@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: reports-java-17
path: '*/build/reports'
- name: Build and test Java 21
env:
RHINO_TEST_JAVA_VERSION: "21"
run: >-
./gradlew check
- name: Upload results Java 21
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: reports-java-21
path: '*/build/reports'