update: multi-module projects for all java versions starting with java8 #1
This file contains hidden or 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: Build modules per JDK | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| build: | |
| name: Build module ${{ matrix.module }} with Java ${{ matrix.java }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - module: java8 | |
| java: 8 | |
| - module: java11 | |
| java: 11 | |
| - module: java17 | |
| java: 17 | |
| - module: java21 | |
| java: 21 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "temurin" | |
| java-version: "${{ matrix.java }}" | |
| - name: Build module | |
| run: | | |
| ./mvnw -pl ${{ matrix.module }} -am -DskipTests verify | |
| env: | |
| JAVA_HOME: ${{ steps.setup-java.outputs.java-home }} | |