Skip to content

Commit c904c0f

Browse files
PratikshaPratiksha
authored andcommitted
winp
1 parent 0258628 commit c904c0f

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

.github/workflows/cs-fixer.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ jobs:
99
name: PHP CS Fixer
1010
runs-on: ubuntu-latest
1111

12-
services:
13-
neo4j:
14-
image: neo4j:latest
15-
ports:
16-
- 7474:7474
17-
- 7687:7687
12+
1813

1914
steps:
2015
- name: Checkout code

.github/workflows/psalm.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ jobs:
99
name: Run Psalm
1010
runs-on: ubuntu-latest
1111

12-
services:
13-
neo4j:
14-
image: neo4j:latest
15-
ports:
16-
- 7474:7474
17-
- 7687:7687
12+
1813
steps:
1914
- name: Checkout code
2015
uses: actions/checkout@v3

.github/workflows/test.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ jobs:
1919
ports:
2020
- 7474:7474
2121
- 7687:7687
22+
env:
23+
NEO4J_AUTH: neo4j/password
24+
options: >-
25+
--health-cmd "curl --silent --fail localhost:7474 || exit 1"
26+
--health-interval 10s
27+
--health-retries 5
28+
--health-timeout 5s
29+
2230
steps:
2331
- name: Checkout code
2432
uses: actions/checkout@v3
@@ -39,9 +47,9 @@ jobs:
3947
- name: Install dependencies
4048
run: composer install --no-progress --prefer-dist
4149

42-
- name: Run Tests without phpunit.xml
43-
env:
44-
NEO4J_ADDRESS: ${{ secrets.NEO4J_ADDRESS }}
45-
NEO4J_USERNAME: ${{ secrets.NEO4J_USERNAME }}
46-
NEO4J_PASSWORD: ${{ secrets.NEO4J_PASSWORD }}
50+
- name: Load environment variables from .env
51+
run: |
52+
export $(grep -v '^#' .env | xargs)
53+
54+
- name: Run PHPUnit Tests
4755
run: vendor/bin/phpunit --configuration phpunit.dist.xml

0 commit comments

Comments
 (0)