Compatibility tests #140
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: Compatibility tests | |
| on: | |
| schedule: | |
| # at 5 am, every day | |
| - cron: 0 5 * * * | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| actions: write | |
| checks: write | |
| pull-requests: write | |
| strategy: | |
| matrix: | |
| java: [ '17', '21', '25' ] | |
| hazelcast: [ '5.4.0', '5.5.0', '5.6.0' ] | |
| spring: [ { springSession: '3.5.2', springFramework: '6.2.12', springSecurity: '6.5.5' }, { springSession: '4.0.1', springFramework: '7.0.3', springSecurity: '7.0.2' } ] | |
| name: Build with Java ${{ matrix.java }} and Hazelcast ${{ matrix.hazelcast }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| cache: 'gradle' | |
| - name: Build with Gradle | |
| run: | | |
| ./gradlew build -PhazelcastVersion="${{ matrix.hazelcast }}" \ | |
| -PspringSessionVersion="${{ matrix.spring.springSession }}" \ | |
| -PspringFrameworkVersion="${{ matrix.spring.springFramework }}" \ | |
| -PspringSecurityVersion="${{ matrix.spring.springSecurity }}" | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: test-results-java-${{ matrix.java }}-hz-${{matrix.hazelcast}}-springSession-${{matrix.spring.springSession}} | |
| path: | | |
| build/reports/tests/ | |
| build/test-results/ | |
| - name: Upload build artifacts | |
| if: success() && matrix.java == '17' && matrix.hazelcast == '5.6' && matrix.spring.springSession == '4.0.1' | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: build-artifacts | |
| path: build/libs/ |