Skip to content

Commit

Permalink
Update workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas CHABALIER committed Dec 19, 2023
1 parent 59ce292 commit ce4cde3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Java CI with Maven

on:
push:
branches: [ master ]
branches: [ java21 ]
tags: [ '*.*' ]
pull_request:
branches: [ master ]
branches: [ java21 ]

jobs:
build:
Expand All @@ -15,24 +15,26 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
java-package: jdk
java-version: 21
distribution: 'graalvm'
components: 'js'
- run: mvn -B compile -DskipTests=true --file pom.xml

test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
java: [8, 13]
java: [21]
r: [3.6, oldrel, release, devel, next]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
java-package: jdk
distribution: 'graalvm'
components: 'js'
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r }}
Expand Down Expand Up @@ -60,8 +62,9 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
java-package: jdk
java-version: 21
distribution: 'graalvm'
components: 'js'
- run: mvn -B package -DskipTests=true --file pom.xml
- uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit ce4cde3

Please sign in to comment.