Skip to content

Release 4.1.6

Release 4.1.6 #641

Workflow file for this run

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.4"
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 }}${{ matrix.toolchainJavaVersion && format(' (Java {0} Container)', matrix.toolchainJavaVersion) || '' }}
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
include:
- java: 11
gradle: '7.6.4'
- java: 11
gradle: '7.6.4'
toolchainJavaVersion: 17
- java: 17
gradle: '7.6.4'
- java: 17
gradle: '7.6.4'
toolchainJavaVersion: 21
- java: 17
gradle: '8.6'
- java: 17
gradle: '8.6'
toolchainJavaVersion: 21
env:
TEST_ALL_CONTAINERS: ${{ matrix.container }}
GRADLE_VERSION: ${{ matrix.gradle }}
EXTRA_PROPERTIES: ${{ matrix.properties }}
TOOLCHAIN_JAVA_ARGS: "${{ matrix.toolchainJavaVersion && format('-PtoolchainJavaVersion={0}', matrix.toolchainJavaVersion) || '' }}"
GRADLE_TEST_TASK: "${{ matrix.toolchainJavaVersion && 'testAllJavaToolchain' || 'testAll' }}"
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 $TOOLCHAIN_JAVA_ARGS \
-PgeckoDriverPlatform=linux64 \
-PtestAllContainers=$TEST_ALL_CONTAINERS \
$GRADLE_TEST_TASK
working-directory: integrationTests