Skip to content

Commit 178cff1

Browse files
committed
ci: Update integration test workflow to specify docker-compose file
1 parent c2ebeda commit 178cff1

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

.github/workflows/integration-test-cluster-neo4j-4.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
php: ['8.1.31', '8.3.17']
14+
php: ["8.1.31", "8.3.17"]
1515
name: "Running on PHP ${{ matrix.php }} in a Neo4j 4.4 cluster"
1616

1717
steps:
@@ -23,9 +23,9 @@ jobs:
2323
- uses: hoverkraft-tech/[email protected]
2424
name: Start services
2525
with:
26-
compose-file: './docker-compose-neo4j-4.yml'
27-
up-flags: '--build --remove-orphans'
26+
compose-file: "./docker-compose-neo4j-4.yml"
27+
up-flags: "--build --remove-orphans"
2828
- name: Test
2929
run: |
30-
docker compose run --rm client composer install
31-
docker compose run --rm client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
30+
docker compose -f docker-compose-neo4j-4.yml run --rm client composer install
31+
docker compose -f docker-compose-neo4j-4.yml run --rm client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration

.github/workflows/integration-test-cluster-neo4j-5.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
php: ['8.1.31', '8.3.17']
14+
php: ["8.1.31", "8.3.17"]
1515
name: "Running on PHP ${{ matrix.php }} with a Neo4j 5.20-enterprise cluster"
1616

1717
steps:
@@ -23,8 +23,8 @@ jobs:
2323
- uses: hoverkraft-tech/[email protected]
2424
name: Start services
2525
with:
26-
compose-file: './docker-compose.yml'
27-
up-flags: '--build --remove-orphans'
26+
compose-file: "./docker-compose.yml"
27+
up-flags: "--build --remove-orphans"
2828
- name: Test
2929
run: |
3030
docker compose run --rm client composer install

.github/workflows/integration-test-single-server.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
php: ['8.1.31', '8.3.17']
14+
php: ["8.1.31", "8.3.17"]
1515
name: "Running on PHP ${{ matrix.php }} with a Neo4j 4 instance connecting over all available protocols"
1616

1717
steps:
@@ -23,28 +23,28 @@ jobs:
2323
- uses: hoverkraft-tech/[email protected]
2424
name: Start services
2525
with:
26-
compose-file: './docker-compose-neo4j-4.yml'
27-
up-flags: '--build --remove-orphans'
26+
compose-file: "./docker-compose-neo4j-4.yml"
27+
up-flags: "--build --remove-orphans"
2828
- name: Composer install
2929
run: |
30-
docker compose run client composer install
30+
docker compose -f docker-compose-neo4j-4.yml run client composer install
3131
- name: Test neo4j://
3232
run: |
33-
docker compose run \
33+
docker compose -f docker-compose-neo4j-4.yml run \
3434
-e PHP_VERSION=${{ matrix.php }} \
3535
-e CONNECTION=neo4j://neo4j:testtest@neo4j \
3636
client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
3737
- name: Test bolt://
3838
run: |
39-
docker compose run \
39+
docker compose -f docker-compose-neo4j-4.yml run \
4040
-e PHP_VERSION=${{ matrix.php }} \
4141
-e CONNECTION=bolt://neo4j:testtest@neo4j \
4242
client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
4343
tests-v5:
4444
runs-on: ubuntu-latest
4545
strategy:
4646
matrix:
47-
php: ['8.1.31', '8.3.17']
47+
php: ["8.1.31", "8.3.17"]
4848
name: "Running on PHP ${{ matrix.php }} with a Neo4j 5 instance connecting over all available protocols"
4949

5050
steps:
@@ -56,8 +56,8 @@ jobs:
5656
- uses: hoverkraft-tech/[email protected]
5757
name: Start services
5858
with:
59-
compose-file: './docker-compose.yml'
60-
up-flags: '--build'
59+
compose-file: "./docker-compose.yml"
60+
up-flags: "--build"
6161
- name: Composer install
6262
run: |
6363
docker compose run --rm client composer install

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup PHP
1818
uses: shivammathur/setup-php@v2
1919
with:
20-
php-version: '8.3.17'
20+
php-version: "8.3.17"
2121

2222
- name: Cache Composer dependencies
2323
uses: actions/cache@v4

.github/workflows/unit-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
runs-on: ubuntu-latest
1212
name: "Running Unit Tests"
1313
strategy:
14-
matrix:
15-
php: ['8.1.31', '8.2.27', '8.3.17']
14+
matrix:
15+
php: ["8.1.31", "8.2.27", "8.3.17"]
1616

1717
steps:
1818
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)