Skip to content

Commit 144df14

Browse files
updated used versions and unified written php version style (#252)
* locked PHP minor version during testing in the CI pipelines * Upgraded GitHub actions to newer versions --------- Co-authored-by: Ghlen Nagels <[email protected]>
1 parent 47d972e commit 144df14

File tree

6 files changed

+33
-27
lines changed

6 files changed

+33
-27
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
php: [8.1, 8.3]
16+
php: ['8.1.31', '8.3.17']
1717
env:
1818
PHP_VERSION: ${{ matrix.php }}
1919
CONNECTION: neo4j://neo4j:testtest@localhost:7688
2020
name: "Running on PHP ${{ matrix.php }} in a Neo4j 4.4 cluster"
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424
- name: Populate .env
2525
run: |
2626
echo "PHP_VERSION=${{ matrix.php }}" > .env

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
php: [8.1, 8.3]
16+
php: ['8.1.31', '8.3.17']
1717
env:
1818
PHP_VERSION: ${{ matrix.php }}
1919
CONNECTION: neo4j://neo4j:testtest@localhost:7687
2020
name: "Running on PHP ${{ matrix.php }} with a Neo4j 5.20-enterprise cluster"
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424
- name: Populate .env
2525
run: |
2626
echo "PHP_VERSION=${{ matrix.php }}" > .env

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
php: [8.1, 8.3]
16+
php: ['8.1.31', '8.3.17']
1717
name: "Running on PHP ${{ matrix.php }} with a Neo4j 4 instance connecting over all available protocols"
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Populate .env
2222
run: |
2323
echo "PHP_VERSION=${{ matrix.php }}" > .env
@@ -46,11 +46,11 @@ jobs:
4646
runs-on: ubuntu-latest
4747
strategy:
4848
matrix:
49-
php: [8.1, 8.3]
49+
php: ['8.1.31', '8.3.17']
5050
name: "Running on PHP ${{ matrix.php }} with a Neo4j 5 instance connecting over all available protocols"
5151

5252
steps:
53-
- uses: actions/checkout@v2
53+
- uses: actions/checkout@v4
5454
- name: Populate .env
5555
run: |
5656
echo "PHP_VERSION=${{ matrix.php }}" > .env

.github/workflows/static-analysis.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,22 @@ jobs:
1212
name: "Lint & Analyse"
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616

1717
# Setup the correct PHP version globally
1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.3.16'
21+
php-version: '8.3.17'
2222

2323
- name: Cache Composer dependencies
24-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2525
with:
2626
path: /tmp/composer-cache
27-
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
27+
key: ${{ runner.os }}-${{ hashFiles('**/composer.json') }}
2828

29-
- uses: php-actions/composer@v6
30-
with:
31-
progress: yes
32-
php_version: 8.3.16
33-
version: 2
29+
- name: Install dependencies
30+
run: composer install
3431

3532
- name: "PHP-CS-Fixer"
3633
run: vendor/bin/php-cs-fixer fix --dry-run

.github/workflows/unit-test.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,27 @@ jobs:
1414
name: "Running Unit Tests"
1515
strategy:
1616
matrix:
17-
php: ['8.1.31', '8.2.27', '8.3.16']
17+
php: ['8.1.31', '8.2.27', '8.3.17']
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
21+
22+
# Setup the correct PHP version globally
23+
- name: Set up PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
2128
- name: Cache Composer dependencies
22-
uses: actions/cache@v2
29+
uses: actions/cache@v4
2330
with:
2431
path: /tmp/composer-cache
25-
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
26-
- uses: php-actions/composer@v6
27-
with:
28-
progress: yes
29-
php_version: ${{ matrix.php }}
30-
version: 2
31-
- uses: php-actions/phpunit@v3
32+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
33+
34+
- name: Install dependencies
35+
run: composer install
36+
37+
- uses: php-actions/phpunit@v4
3238
with:
3339
configuration: phpunit.xml.dist
3440
php_version: ${{ matrix.php }}

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
"allow-plugins": {
7575
"composer/package-versions-deprecated": true,
7676
"php-http/discovery": true
77+
},
78+
"platform": {
79+
"php": "8.1.17"
7780
}
7881
}
7982
}

0 commit comments

Comments
 (0)