test 11 #137
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: CI with different Java versions | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-slim | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: '8' | |
| distribution: 'temurin' | |
| cache: maven | |
| - run: ./mvnw verify -Dgpg.skip | |
| - run: mkdir library && cp target/*.jar library | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: Library | |
| path: library | |
| retention-days: 1 | |
| test-jdk11: | |
| needs: build | |
| runs-on: ubuntu-slim | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: '11' | |
| distribution: 'temurin' | |
| cache: maven | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: Library | |
| - run: | | |
| ./mvnw install:install-file \ | |
| -Dfile=system-lambda-1.2.1.jar \ | |
| -DgroupId=com.github.stefanbirkner \ | |
| -DartifactId=system-lambda \ | |
| -Dversion=1.2.1 \ | |
| -Dpackaging=jar \ | |
| -DgeneratePom=true | |
| - run: rm -r src/main/java | |
| - run: ./mvnw -f pom.test.xml dependency:tree | |
| - run: ./mvnw test -f pom.test.xml | |