Skip to content

Commit

Permalink
Add heroku-24 to CI (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malax authored Jun 5, 2024
1 parent e07f76b commit 5961492
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
stack: ["heroku-20", "heroku-22"]
stack: ["heroku-20", "heroku-22", "heroku-24"]
env:
HATCHET_APP_LIMIT: 100
HATCHET_RUN_MULTI: 1
Expand Down
12 changes: 11 additions & 1 deletion test/compile_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ installWrapper() {
cp -r "$WRAPPER_DIR"/* ${BUILD_DIR}
}

requestOpenJdk8() {
cat > ${BUILD_DIR}/system.properties <<EOF
java.runtime.version=8
EOF
}

testCompileWithoutWrapper()
{
requestOpenJdk8
cat > ${BUILD_DIR}/build.gradle <<EOF
task stage << {
println "${expected_stage_output}"
Expand All @@ -23,6 +30,7 @@ EOF

testCompileWithWrapper()
{
requestOpenJdk8
installWrapper
expected_stage_output="STAGING:${RANDOM}"

Expand All @@ -34,7 +42,7 @@ EOF

compile
assertCapturedSuccess
assertCaptured "Installing OpenJDK 1.8"
assertCaptured "Installing OpenJDK 8"
assertCaptured "${expected_stage_output}"
assertCaptured "BUILD SUCCESSFUL"
assertTrue "Java should be present in runtime." "[ -d ${BUILD_DIR}/.jdk ]"
Expand All @@ -46,6 +54,7 @@ EOF

testCompileWithCustomTask()
{
requestOpenJdk8
installWrapper
expected_stage_output="STAGING:${RANDOM}"

Expand All @@ -65,6 +74,7 @@ EOF

testCompile_Fail()
{
requestOpenJdk8
installWrapper
expected_stage_output="STAGING:${RANDOM}"

Expand Down
1 change: 1 addition & 0 deletions test/spec/fixtures/ci-test-app/system.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java.runtime.version=8

0 comments on commit 5961492

Please sign in to comment.