Test parallel test actions #6449
Workflow file for this run
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: JUnit 21 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 'dev/**' | |
| pull_request: | |
| jobs: | |
| prepare: | |
| name: Parallelize Tests | |
| if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" | |
| uses: ./.github/workflows/parallelize-tests.yml | |
| with: | |
| environments: 1.20.6,1.21.3,1.21.4,1.21.5,1.21.8,1.21.10 | |
| java_version: 21 | |
| build: | |
| name: ${{ matrix.display }} | |
| needs: prepare | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - name: validate gradle wrapper | |
| uses: gradle/actions/wrapper-validation@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'adopt' | |
| cache: gradle | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build Skript and run test scripts | |
| run: ./gradlew clean customTest -PtestEnvs="${{ matrix.envs }}" -PtestEnvJavaVersion=21 -Pjunit=true | |
| - name: Upload Nightly Build | |
| uses: actions/upload-artifact@v4 | |
| if: success() && matrix.id == 1 | |
| with: | |
| name: skript-nightly | |
| path: build/libs/* | |