From 9180f21864019f8861fe0be80c7e9dc972156f87 Mon Sep 17 00:00:00 2001 From: Julian Minder <34280944+jkminder@users.noreply.github.com> Date: Thu, 5 May 2022 11:52:25 +0200 Subject: [PATCH] added neo4j service to tests action --- .github/workflows/tests.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 90efc6b..6bec20d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,10 +13,31 @@ permissions: contents: read jobs: - build: - + tests: runs-on: ubuntu-latest - + + + services: + neo4j: + image: neo4j:latest + env: + NEO4J_dbms_security_procedures_unrestricted: apoc.* + NEO4J_dbms_connector_bolt_enabled: "true" + NEO4J_apoc_import_file_enabled: "true" + NEO4J_apoc_export_file_enabled: "true" + NEO4J_apoc_import_file_use__neo4j__config: "true" + NEO4J_ACCEPT_LICENSE_AGREEMENT: "yes" + NEO4J_dbms_security_auth__enabled: "false" + NEO4J_dbms_connector_bolt_advertised__address: localhost:7687 + NEO4JLABS_PLUGINS: '["apoc"]' + options: >- + --health-cmd "cypher-shell 'match (n) return count(n)'" + --health-timeout 10s + --health-retries 20 + --health-interval 10s + --health-start-period 30s + ports: + - 7687:7687 steps: - uses: actions/checkout@v3 - name: Set up Python 3.10