Skip to content

Commit 13ac675

Browse files
PratikshaPratiksha
authored andcommitted
DEBUG
1 parent e15ce9e commit 13ac675

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

.github/workflows/testaura.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,18 @@ name: Test Neo4j Aura
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
workflow_dispatch: # Allows manual trigger
88

99
concurrency:
10-
group: ${{ github.ref }}
10+
group: neo4j-aura-test-main
1111
cancel-in-progress: true
1212

1313
jobs:
1414
tests-aura:
1515
name: Run PHPUnit Tests with Neo4j Aura
1616
runs-on: ubuntu-latest
1717

18-
services:
19-
neo4j:
20-
image: neo4j:latest
21-
ports:
22-
- 7474:7474
23-
- 7687:7687
24-
env:
25-
NEO4J_AUTH: neo4j/password
26-
options: >-
27-
--health-cmd "wget --no-verbose --tries=1 --spider http://localhost:7474 || exit 1"
28-
--health-interval 10s
29-
--health-retries 5
30-
--health-timeout 5s
3118

3219
steps:
3320
- name: Checkout code
@@ -49,17 +36,9 @@ jobs:
4936
- name: Install dependencies
5037
run: composer install --no-progress --prefer-dist
5138

52-
- name: Set Neo4j Environment Variables
53-
run: |
54-
echo "NEO4J_ADDRESS=http://localhost:7474" >> $GITHUB_ENV
55-
echo "NEO4J_USERNAME=neo4j" >> $GITHUB_ENV
56-
echo "NEO4J_PASSWORD=password" >> $GITHUB_ENV
57-
echo "NEO4J_AUTH=neo4j/password" >> $GITHUB_ENV
58-
5939
- name: Run Tests
6040
env:
61-
NEO4J_ADDRESS: ${{ env.NEO4J_ADDRESS }}
62-
NEO4J_USERNAME: ${{ env.NEO4J_USERNAME }}
63-
NEO4J_PASSWORD: ${{ env.NEO4J_PASSWORD }}
64-
NEO4J_AUTH: ${{ env.NEO4J_AUTH }}
41+
NEO4J_ADDRESS: ${{ secrets.NEO4J_ADDRESS }}
42+
NEO4J_USERNAME: ${{ secrets.NEO4J_USERNAME }}
43+
NEO4J_PASSWORD: ${{ secrets.NEO4J_PASSWORD }}
6544
run: vendor/bin/phpunit --configuration phpunit.dist.xml

0 commit comments

Comments
 (0)