Skip to content

Commit 1a3b41d

Browse files
PratikshaPratiksha
authored andcommitted
winp
1 parent c904c0f commit 1a3b41d

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,6 @@ jobs:
1313
name: Run PHPUnit Tests
1414
runs-on: ubuntu-latest
1515

16-
services:
17-
neo4j:
18-
image: neo4j:latest
19-
ports:
20-
- 7474:7474
21-
- 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-
3016
steps:
3117
- name: Checkout code
3218
uses: actions/checkout@v3
@@ -47,9 +33,9 @@ jobs:
4733
- name: Install dependencies
4834
run: composer install --no-progress --prefer-dist
4935

50-
- name: Load environment variables from .env
51-
run: |
52-
export $(grep -v '^#' .env | xargs)
53-
54-
- name: Run PHPUnit Tests
36+
- name: Run Tests without phpunit.xml
37+
env:
38+
NEO4J_ADDRESS: ${{ secrets.NEO4J_ADDRESS }}
39+
NEO4J_USERNAME: ${{ secrets.NEO4J_USERNAME }}
40+
NEO4J_PASSWORD: ${{ secrets.NEO4J_PASSWORD }}
5541
run: vendor/bin/phpunit --configuration phpunit.dist.xml

0 commit comments

Comments
 (0)