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

Check Cypher queries #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
40 changes: 40 additions & 0 deletions .github/workflows/queries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Check Cypher Queries

on:
workflow_dispatch:
schedule:
# every day at 2pm (UTC)
- cron: "0 14 * * *"

jobs:
build:
runs-on: ubuntu-latest

services:
neo4j:
image: neo4j:4.3
ports:
- 7687:7687
env:
NEO4J_AUTH: neo4j/s3cr3t
NEO4J_ACCEPT_LICENSE_AGREEMENT: yes
NEO4JLABS_PLUGINS: '["apoc", "graph-data-science"]'
options: >-
--health-cmd "cypher-shell -u neo4j -p s3cr3t 'RETURN 1'"
--health-interval 5s
--health-timeout 60s
--health-retries 12

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: '12'
- run: npm ci
- run: npm run fetchAsciiDoc
- run: npm run checkQueries
env:
NEO4J_DATABASE_URI: 'bolt://localhost:7687'
NEO4J_DATABASE_USER: 'neo4j'
NEO4J_DATABASE_PASSWORD: 's3cr3t'
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ node_modules/
/coverage

# production
build
build/*
dist
*.tgz

Expand All @@ -25,4 +25,4 @@ yarn-error.log*
*.swp
.idea*

ui-react/package
ui-react/package
Empty file added build/.gitkeep
Empty file.
Loading