Skip to content

Merge pull request #12 from hgschmie/test-matrix #65

Merge pull request #12 from hgschmie/test-matrix

Merge pull request #12 from hgschmie/test-matrix #65

Workflow file for this run

---
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