Run all tests against multiple oracle versions #58
Workflow file for this run
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: CI Build with tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ 11, 17, 21 ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
id: build_jdk | |
with: | |
java-version: 21 | |
distribution: temurin | |
cache: maven | |
- uses: actions/setup-java@v3 | |
id: test_jdk | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: temurin | |
cache: maven | |
- name: set build_jdk | |
env: | |
JAVA_HOME: ${{ steps.build_jdk.outputs.path }} | |
run: | | |
echo "$JAVA_HOME/bin" >> ${GITHUB_PATH} | |
- name: build distribution | |
env: | |
JAVA_HOME: ${{ steps.build_jdk.outputs.path }} | |
MAVEN_CONFIG: "-Dbasepom.check.skip-enforcer=false -B -fae" | |
run: | | |
make install-fast | |
- name: set test_jdk | |
env: | |
JAVA_HOME: ${{ steps.test_jdk.outputs.path }} | |
run: | | |
echo "$JAVA_HOME/bin" >> ${GITHUB_PATH} | |
- name: run tests | |
env: | |
JAVA_HOME: ${{ steps.test_jdk.outputs.path }} | |
MAVEN_CONFIG: "-B -fae" | |
run: | | |
make run-tests |