Skip to content

Commit 6d8c213

Browse files
committed
use github actions instead
temp-db only works with neo4j > 4.0 and can only create databased on enterprise version
1 parent c2f471a commit 6d8c213

File tree

2 files changed

+9
-30
lines changed

2 files changed

+9
-30
lines changed

.circleci/config.yml

-25
This file was deleted.

.github/workflows/node.js.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
matrix:
2929
node-version: [ 10.x ]
30-
neo4j-version: [ "3.5", "3.5-enterprise", "4.2", "4.2-enterprise" ]
30+
neo4j-version: [ "4.3-enterprise" ]
3131
services:
3232
neo4j:
3333
image: neo4j:${{ matrix.neo4j-version }}
@@ -46,16 +46,20 @@ jobs:
4646
steps:
4747
- name: Download dataset
4848
run: curl --fail --output /tmp/movies.cypher https://raw.githubusercontent.com/neo4j-graph-examples/movies/8508a527d8aa1c261b0978d1d5b3156d4ac8328e/scripts/import.cypher
49-
- name: Import dataset (Neo4j 3.5)
50-
if: ${{ startsWith(matrix.neo4j-version, '3.5') }}
51-
run: docker exec --interactive neo4j-e2e sh -c 'cat /movies/movies.cypher | cypher-shell -u neo4j -p abcde'
5249
- name: Import dataset
53-
if: ${{ !startsWith(matrix.neo4j-version, '3.5') }}
5450
run: docker exec --interactive neo4j-e2e cypher-shell -u neo4j -p abcde --file /movies/movies.cypher
5551
- name: Check out project sources
5652
uses: actions/checkout@v2
5753
- name: Install dependencies
5854
run: npm ci
55+
- name: Run unit tests
56+
env:
57+
NEO4J_VERSION: ${{ matrix.neo4j-version }}
58+
NEO4J_URI: bolt://localhost
59+
NEO4J_DATABASE: "neo4j"
60+
NEO4J_USER: neo4j
61+
NEO4J_PASSWORD: abcde
62+
run: npm test
5963
- name: Start server
6064
env:
6165
NEO4J_VERSION: ${{ matrix.neo4j-version }}

0 commit comments

Comments
 (0)