Merge pull request #291 from graben/test #16
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: Java CI with Maven | |
| on: | |
| push: | |
| branches: '**' | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| cache: 'maven' | |
| java-version: 21 | |
| distribution: 'temurin' | |
| - name: Build and test core modules | |
| run: ./mvnw --projects !narayana-spring-boot-starter-it install | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: narayana-spring-boot-repository-artifact | |
| path: ~/.m2/repository/dev/snowdrop/** | |
| retention-days: 1 | |
| test: | |
| needs: build | |
| strategy: | |
| matrix: | |
| java: [ 25, 21, 17 ] | |
| os: [ ubuntu-latest ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| cache: 'maven' | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: narayana-spring-boot-repository-artifact | |
| path: ~/.m2/repository/dev/snowdrop | |
| - name: Run integration tests | |
| run: ./mvnw --projects narayana-spring-boot-starter-it -Ptestcontainers verify |