fix: bytecode version unspecified & NPE and trySetAccessible method does not exist on Android #1108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [ '11', '17', '21' ] | |
name: Rhino Java ${{ matrix.java }} | |
steps: | |
- name: Checkout | |
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: ${{ matrix.java }} | |
distribution: 'adopt' | |
- name: Check everything with Gradle | |
run: >- | |
./gradlew check | |
- name: Upload results | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: reports-java-${{ matrix.java }} | |
path: '*/build/reports' |