Merge pull request #7326 from zapbot/techs-update #17378
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| java: [17, 19, 21] | |
| include: | |
| - os: windows-latest | |
| java: 17 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java }} | |
| - uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0 | |
| with: | |
| gradle-home-cache-includes: | | |
| caches | |
| caches/zap-wd | |
| notifications | |
| - run: ./gradlew "-Dorg.gradle.jvmargs=-Xmx4g" assemble | |
| env: | |
| ZAP_WD_CACHE: 1 | |
| - run: ./gradlew check |