Skip to content

Commit a20cc6f

Browse files
exaby73transistive
authored andcommitted
feat: Add configs for CI
1 parent bc07c92 commit a20cc6f

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
build:
1212
name: Build
1313
runs-on: ubuntu-latest
14+
env:
15+
APP_ENV: ci
16+
1417
strategy:
1518
max-parallel: 10
1619
matrix:

tests/App/TestKernel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@ public function registerBundles(): array
2222
public function registerContainerConfiguration(LoaderInterface $loader): void
2323
{
2424
$loader->load(__DIR__.'/config/default.yml');
25+
if ('ci' === $this->environment) {
26+
$loader->load(__DIR__.'/config/ci/default.yml');
27+
}
2528
}
2629
}

tests/App/config/ci/default.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
parameters:
2+
neo4j.dsn.badname: bolt://localhostt
3+
neo4j.dsn.test: neo4j://neo4j:testtest@localhost

tests/App/config/default.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ framework:
22
secret: test
33
test: true
44

5+
parameters:
6+
neo4j.dsn.badname: bolt://localhost
7+
neo4j.dsn.secret: neo4j://neo4j:secret@localhost:7688
8+
neo4j.dsn.test: neo4j://neo4j:testtest@neo4j
9+
neo4j.dsn.simple: bolt://test:test@localhost
10+
511
neo4j:
612
default_driver: neo4j-test
713
default_driver_config:
@@ -20,25 +26,25 @@ neo4j:
2026

2127
drivers:
2228
- alias: neo4j_undefined_configs
23-
dsn: bolt://localhost
29+
dsn: '%neo4j.dsn.badname%'
2430

2531
- alias: neo4j-enforced-defaults
26-
dsn: bolt://localhost
32+
dsn: '%neo4j.dsn.badname%'
2733
priority: null
2834

2935
- alias: neo4j-partly-enforced-defaults
30-
dsn: neo4j://neo4j:secret@localhost:7688
36+
dsn: '%neo4j.dsn.secret%'
3137

3238
- alias: neo4j-simple
33-
dsn: "bolt://test:test@localhost"
39+
dsn: '%neo4j.dsn.simple%'
3440

3541
- alias: neo4j-fallback-mechanism
3642
priority: 100
37-
dsn: bolt://localhost
43+
dsn: '%neo4j.dsn.badname%'
3844

3945
- alias: neo4j-fallback-mechanism
4046
priority: 1000
41-
dsn: bolt://localhost
47+
dsn: '%neo4j.dsn.badname%'
4248

4349
- alias: neo4j-test
44-
dsn: neo4j://neo4j:testtest@neo4j
50+
dsn: '%neo4j.dsn.test%'

0 commit comments

Comments
 (0)