From bc4bb0a8450d6c9d69a5d073019c374cc5f801ff Mon Sep 17 00:00:00 2001 From: Hardik Joshi Date: Thu, 26 Sep 2024 16:56:00 +0530 Subject: [PATCH] setup java early in steps and cach maven --- .github/workflows/e2e_test.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/e2e_test.yml b/.github/workflows/e2e_test.yml index 7ad1154a1..0ae0d7d67 100644 --- a/.github/workflows/e2e_test.yml +++ b/.github/workflows/e2e_test.yml @@ -26,6 +26,14 @@ jobs: ACTIVE_MODEL_VERSION: ${{ matrix.active_model }} JRUBY_OPTS: --debug -J-Xmx1280m -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF steps: + - name: Set up Java + uses: actions/setup-java@v4 + if: matrix.java-version + with: + distribution: 'temurin' + java-version: ${{ matrix.java-version }} + cache: maven + - name: Start neo4j run: docker run --name neo4j --env NEO4J_AUTH=neo4j/password --env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes --env NEO4J_dbms_directories_import= -p7687:7687 -p7474:7474 -v `pwd`/tmp:/var/lib/neo4j/import --rm neo4j:${{ matrix.neo4j }}-enterprise & @@ -36,13 +44,6 @@ jobs: with: ruby-version: ${{ matrix.ruby }} - - name: Set up Java - uses: actions/setup-java@v3 - if: matrix.java-version - with: - distribution: 'temurin' - java-version: ${{ matrix.java-version }} - - name: Wait for neo4j run: while [ $((curl localhost:7474/ > /dev/null 2>&1); echo $?) -ne 0 ]; do sleep 1; done