Skip to content

Commit

Permalink
setup java early in steps and cach maven
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhardikjoshi committed Sep 26, 2024
1 parent 4e7f303 commit bc4bb0a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/e2e_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 &

Expand All @@ -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

Expand Down

0 comments on commit bc4bb0a

Please sign in to comment.