Skip to content

Commit f1cafde

Browse files
PratikshaPratiksha
authored andcommitted
DEBUG
1 parent 6ac5c23 commit f1cafde

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.github/workflows/cs-fixer.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ jobs:
99
name: PHP CS Fixer
1010
runs-on: ubuntu-latest
1111

12-
13-
1412
steps:
1513
- name: Checkout code
1614
uses: actions/checkout@v3

.github/workflows/test.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,22 @@ concurrency:
1010

1111
jobs:
1212
tests:
13+
services:
14+
neo4j:
15+
image: neo4j:latest
16+
ports:
17+
- 7474:7474
18+
- 7687:7687
19+
env:
20+
NEO4J_AUTH: neo4j/password
21+
options: >-
22+
--health-cmd "curl --silent --fail localhost:7474 || exit 1"
23+
--health-interval 10s
24+
--health-retries 5
25+
--health-timeout 5s
26+
1327
name: Run PHPUnit Tests
1428
runs-on: ubuntu-latest
15-
1629
steps:
1730
- name: Checkout code
1831
uses: actions/checkout@v3
@@ -33,15 +46,9 @@ jobs:
3346
- name: Install dependencies
3447
run: composer install --no-progress --prefer-dist
3548

36-
- name: Set Neo4j Environment Variables
37-
run: |
38-
echo "NEO4J_ADDRESS=https://6f72daa1.databases.neo4j.io" >> $GITHUB_ENV
39-
echo "NEO4J_USERNAME=neo4j" >> $GITHUB_ENV
40-
echo "NEO4J_PASSWORD=9lWmptqBgxBOz8NVcTJjgs3cHPyYmsy63ui6Spmw1d0" >> $GITHUB_ENV
41-
42-
- name: Run Tests
49+
- name: Run Tests without phpunit.xml
4350
env:
44-
NEO4J_ADDRESS: ${{ env.NEO4J_ADDRESS }}
45-
NEO4J_USERNAME: ${{ env.NEO4J_USERNAME }}
46-
NEO4J_PASSWORD: ${{ env.NEO4J_PASSWORD }}
51+
NEO4J_ADDRESS: "http://neo4j"
52+
NEO4J_USERNAME: "neo4j"
53+
NEO4J_PASSWORD: "password"
4754
run: vendor/bin/phpunit --configuration phpunit.dist.xml

0 commit comments

Comments
 (0)