From 19c2fb1b601bdd98bcdcdf5ea43b488ed5aba000 Mon Sep 17 00:00:00 2001 From: manasa-kandimalla Date: Tue, 1 Nov 2022 21:12:48 +0530 Subject: [PATCH] Added githubactions.yml file and updated ReadMe.md file --- .github/workflows/neo4j-almaren-githubactions.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/neo4j-almaren-githubactions.yml b/.github/workflows/neo4j-almaren-githubactions.yml index be4f151..860a905 100644 --- a/.github/workflows/neo4j-almaren-githubactions.yml +++ b/.github/workflows/neo4j-almaren-githubactions.yml @@ -5,6 +5,14 @@ jobs: Build: runs-on: ubuntu-20.04 services: + neo4j: + image: neo4j:3.5 + ports: + - 7474:7474 + - 7687:7687 + env: + neo4j-user: neo4j + neo4j-password: neo4j postgres: image: postgres:13.4 env: @@ -18,6 +26,9 @@ jobs: --health-timeout 5s --health-retries 5 steps: + - name: Update NEO4j password + run: | + curl -H "Content-Type: application/json" -XPOST -d '{"password":"neo4j1234"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password - name : Check out repository code uses: actions/checkout@v2 - name: Setup JDK @@ -32,7 +43,7 @@ jobs: PGPASSWORD="postgres" psql -c "ALTER USER postgres PASSWORD 'postgres' ;" -U postgres -h localhost PGPASSWORD="postgres" psql -c 'create role runner;' -U postgres -h localhost PGPASSWORD="postgres" psql -c 'ALTER ROLE "runner" WITH LOGIN SUPERUSER INHERIT CREATEDB CREATEROLE REPLICATION;' -U postgres -h localhost - sbt ++2.12.10 test + sbt ++2.12.15 test rm -rf "$HOME/.ivy2/local" || true find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true