File tree Expand file tree Collapse file tree 1 file changed +5
-26
lines changed Expand file tree Collapse file tree 1 file changed +5
-26
lines changed Original file line number Diff line number Diff line change @@ -3,31 +3,18 @@ name: Test Neo4j Aura
3
3
on :
4
4
push :
5
5
branches :
6
- - master
6
+ - main
7
7
workflow_dispatch : # Allows manual trigger
8
8
9
9
concurrency :
10
- group : ${{ github.ref }}
10
+ group : neo4j-aura-test-main
11
11
cancel-in-progress : true
12
12
13
13
jobs :
14
14
tests-aura :
15
15
name : Run PHPUnit Tests with Neo4j Aura
16
16
runs-on : ubuntu-latest
17
17
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
31
18
32
19
steps :
33
20
- name : Checkout code
49
36
- name : Install dependencies
50
37
run : composer install --no-progress --prefer-dist
51
38
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
-
59
39
- name : Run Tests
60
40
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 }}
65
44
run : vendor/bin/phpunit --configuration phpunit.dist.xml
You can’t perform that action at this time.
0 commit comments