Revert "Run also a JDK 21 build" #570
This file contains 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 | |
on: ['push', 'pull_request'] | |
env: | |
PRIVATE_REPO: "${{ github.workspace }}/build/githubActionGrettyPrivateRepository" | |
jobs: | |
build: | |
name: Build Gretty | |
runs-on: ubuntu-latest | |
env: | |
JDK_VERSION: "17" | |
GRADLE_VERSION: "7.6.3" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ env.JDK_VERSION }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ env.JDK_VERSION }} | |
- name: Build with Gradle ${{ env.GRADLE_VERSION }} | |
run: | | |
set -e | |
./gradlew --no-daemon wrapper --gradle-version $GRADLE_VERSION --distribution-type all | |
./gradlew --no-daemon --warning-mode all -PprivateRepoDir=$PRIVATE_REPO build | |
set +e | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: gretty-private-repository | |
path: ${{ env.PRIVATE_REPO }} | |
test: | |
name: Gradle ${{ matrix.gradle }} on Java ${{ matrix.java }} | |
runs-on: ubuntu-latest | |
needs: build | |
strategy: | |
matrix: | |
include: | |
- java: 11 | |
gradle: '7.6.3' | |
- java: 17 | |
gradle: '7.6.3' | |
- java: 17 | |
gradle: '8.4' | |
env: | |
TEST_ALL_CONTAINERS: ${{ matrix.container }} | |
GRADLE_VERSION: ${{ matrix.gradle }} | |
EXTRA_PROPERTIES: ${{ matrix.properties }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: gretty-private-repository | |
path: ${{ env.PRIVATE_REPO }} | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
- name: Set up Gradle ${{ matrix.gradle }} | |
run: ./gradlew --no-daemon wrapper --gradle-version $GRADLE_VERSION --distribution-type all | |
# begin workaround - see also integrationTests/buildSrc/build.gradle | |
- name: Install buildSrc project (only required for Gradle 8) | |
run: | | |
../../gradlew --no-daemon \ | |
--warning-mode all \ | |
-PprivateRepoDir=$PRIVATE_REPO \ | |
publishToPrivateRepo | |
if: "startsWith(env.GRADLE_VERSION, '8.')" | |
working-directory: integrationTests/buildSrc | |
# end workaround | |
- name: Run Integration Tests | |
run: | | |
../gradlew --no-daemon \ | |
--warning-mode all \ | |
-PprivateRepoDir=$PRIVATE_REPO \ | |
$EXTRA_PROPERTIES \ | |
-PgeckoDriverPlatform=linux64 \ | |
-PtestAllContainers=$TEST_ALL_CONTAINERS \ | |
testAll | |
working-directory: integrationTests |