Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Neo4j versions on test matrix #297

Merged
merged 3 commits into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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