diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb7ae74..bf12b6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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_EXPENSIVE_MODE: 1 @@ -85,12 +85,12 @@ jobs: name: "Unit Tests (${{ matrix.stack }})" runs-on: ubuntu-22.04 container: - image: "${{ fromJson('{ \"heroku-20\": \"heroku/heroku:20\", \"heroku-22\": \"heroku/heroku:22\" }')[matrix.stack] }}" + image: "${{ fromJson('{ \"heroku-20\": \"heroku/heroku:20\", \"heroku-22\": \"heroku/heroku:22\", \"heroku-24\": \"heroku/heroku:24\" }')[matrix.stack] }}" env: STACK: ${{ matrix.stack }} strategy: matrix: - stack: ["heroku-20", "heroku-22"] + stack: ["heroku-20", "heroku-22", "heroku-24"] steps: - uses: actions/checkout@v4 - run: test/unit diff --git a/test/spec/db_spec.rb b/test/spec/db_spec.rb index 3b652ac..f1b6934 100644 --- a/test/spec/db_spec.rb +++ b/test/spec/db_spec.rb @@ -8,6 +8,8 @@ set_java_version(DEFAULT_OPENJDK_VERSION) end + app.add_database() + app.deploy do expect(app.output).to include("Installing OpenJDK #{DEFAULT_OPENJDK_VERSION}") expect(app.output).to include("Installing Maven") diff --git a/test/spec/java_spec.rb b/test/spec/java_spec.rb index b2dd0d0..63e184d 100644 --- a/test/spec/java_spec.rb +++ b/test/spec/java_spec.rb @@ -9,6 +9,8 @@ set_java_version(openjdk_version) end + app.add_database() + app.deploy do expect(app.output).to include("Installing OpenJDK #{openjdk_version}") expect(app.output).to include("BUILD SUCCESS") diff --git a/test/spec/maven_spec.rb b/test/spec/maven_spec.rb index 5976d09..7782349 100644 --- a/test/spec/maven_spec.rb +++ b/test/spec/maven_spec.rb @@ -25,6 +25,8 @@ set_maven_version("3.2.5") end + app.add_database() + app.deploy do expect(app.output).to include("Installing Maven 3.2.5") expect(app.output).not_to include("BUILD FAILURE") diff --git a/test/spec/spec_helper.rb b/test/spec/spec_helper.rb index 3e9ddc5..67140f9 100644 --- a/test/spec/spec_helper.rb +++ b/test/spec/spec_helper.rb @@ -3,9 +3,7 @@ require "hatchet" require "java-properties" -# Omitting 1.7 here since most example projects used in testing are not -# compatible with 1.7. -OPENJDK_VERSIONS=%w(1.8 11 13 15) +OPENJDK_VERSIONS=%w(1.8 11 17 21) DEFAULT_OPENJDK_VERSION="1.8" RSpec.configure do |config|