Skip to content

Commit

Permalink
Update Neo4j versions on test matrix (#297)
Browse files Browse the repository at this point in the history
* Update Neo4j versions on test matrix

* Update script and password

* Remove 3.5 conditional
  • Loading branch information
bigmontz authored Feb 8, 2024
1 parent 7695cdc commit e66e8b5
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,27 @@ jobs:
strategy:
matrix:
node-version: [ 16.x ]
neo4j-version: [ "3.5", "3.5-enterprise", "4.4", "4.4-enterprise" ]
neo4j-version: [ "4.4", "4.4-enterprise", "5", "5-enterprise" ]
services:
neo4j:
image: neo4j:${{ matrix.neo4j-version }}
ports: [ "7687:7687" ]
env:
NEO4J_ACCEPT_LICENSE_AGREEMENT: yes
NEO4J_AUTH: "neo4j/abcde"
NEO4J_AUTH: "neo4j/abcdefghi"
options: >-
--name neo4j-e2e
--health-cmd "cypher-shell -u neo4j -p abcde 'RETURN 1'"
--health-cmd "cypher-shell -u neo4j -p abcdefghi 'RETURN 1'"
--health-interval 10s
--health-timeout 5s
--health-start-period 10s
--health-retries 5
--volume /tmp:/movies
steps:
- name: Download dataset
run: curl --fail --output /tmp/movies.cypher https://raw.githubusercontent.com/neo4j-graph-examples/movies/8508a527d8aa1c261b0978d1d5b3156d4ac8328e/scripts/import.cypher
- name: Import dataset (Neo4j 3.5)
if: ${{ startsWith(matrix.neo4j-version, '3.5') }}
run: docker exec --interactive neo4j-e2e sh -c 'cat /movies/movies.cypher | cypher-shell -u neo4j -p abcde'
run: curl --fail --output /tmp/movies.cypher https://raw.githubusercontent.com/neo4j-graph-examples/movies/7e75003d2d32bf42ef9c740d1321a310fac1d1a6/scripts/movies.cypher
- name: Import dataset
if: ${{ !startsWith(matrix.neo4j-version, '3.5') }}
run: docker exec --interactive neo4j-e2e cypher-shell -u neo4j -p abcde --file /movies/movies.cypher
run: docker exec --interactive neo4j-e2e cypher-shell -u neo4j -p abcdefghi --file /movies/movies.cypher
- name: Check out project sources
uses: actions/checkout@v4
- name: Install dependencies
Expand All @@ -70,7 +66,7 @@ jobs:
NEO4J_URI: bolt://localhost
NEO4J_DATABASE: "neo4j"
NEO4J_USER: neo4j
NEO4J_PASSWORD: abcde
NEO4J_PASSWORD: abcdefghi
with:
working-directory: e2e
browser: chrome
Expand Down

0 comments on commit e66e8b5

Please sign in to comment.