Skip to content

Commit

Permalink
[ci] more (embedded) test on newer Java versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Sep 26, 2023
1 parent e3bb451 commit 0a2efe6
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ jobs:
strategy:
matrix:
package-flags: ['-Pmain', '-Pdist', '-Pcomplete', '-Posgi', '-Ptest', '-Pmain,test -Dinvoker.test=extended']
# dist, complete, and osgi do not pass on 17 yet
java-version: ['11']
java-version: [8, 11, 21]
fail-fast: false

name: mvn ${{ matrix.package-flags }} (Java ${{ matrix.java-version }})
Expand All @@ -128,25 +127,25 @@ jobs:
env:
PHASE: 'package ${{ matrix.package-flags }}'

mvn-test-8:
mvn-test-extended:
runs-on: ubuntu-latest

strategy:
matrix:
# jruby-jars phase only passes on 8
package-flags: ['-Pjruby-jars', '-Pjruby-jars,test -Dinvoker.test=extended', '-Pjruby_complete_jar_extended -Dinvoker.skip=true']
java-version: [11, 17]
fail-fast: false

name: mvn ${{ matrix.package-flags }} (Java 8)
name: mvn ${{ matrix.package-flags }} (Java ${{ matrix.java-version }})

steps:
- name: Bootstrap build
uses: jruby/jruby-ci-build@v1
- name: set up java 8
- name: set up java ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 8
distribution: temurin
java-version: ${{ matrix.java-version }}
cache: 'maven'
- name: mvn package ${{ matrix.package-flags }}
run: tool/maven-ci-script.sh
Expand Down Expand Up @@ -394,7 +393,7 @@ jobs:
permissions:
contents: none
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/jruby-9.3' }}
needs: [mvn-test, mvn-test-8, mvn-test-windows, dependency-check, rake-test, rake-test-17-indy, rake-test-8, test-versions, sequel, concurrent-ruby, jruby-tests-dev, regression-specs-jit, mvn-test-m1]
needs: [mvn-test, mvn-test-extended, mvn-test-windows, dependency-check, rake-test, rake-test-17-indy, rake-test-8, test-versions, sequel, concurrent-ruby, jruby-tests-dev, regression-specs-jit, mvn-test-m1]
uses: jruby/jruby/.github/workflows/snapshot-publish.yml@6cd0d4d96d9406635183d81cf91acc82cd78245f
secrets:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
Expand Down

0 comments on commit 0a2efe6

Please sign in to comment.