Skip to content

Commit eaf598d

Browse files
committed
CI improvements, including new checks/tests under PHP 8.3
1 parent 8c2a7e9 commit eaf598d

8 files changed

Lines changed: 10 additions & 8 deletions

File tree

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
# Ignore test output
1111
/.phplint-cache
12+
/.phplint.cache
1213

1314
# Ignore Docker files
1415
/Dockerfile

.github/workflows/coding_style_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212

1313
- name: Run Coding Style Checks
1414
run: docker run --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php8.2 phpcs -v --standard=PSR2 src tests/unit

.github/workflows/syntax_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
- name: Run Syntax Checks
2020
run: |

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
php: ["7.3", "7.4", "8.0", "8.1", "8.2"]
11+
php: ["7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
1212

1313
name: Tests Under PHP ${{ matrix.php }}
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
- name: Setup Services
2020
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# Ignore test output
1818
/.phplint-cache
19+
/.phplint.cache
1920

2021
# Ignore Composer files
2122
/composer.lock

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"require-dev": {
1010
"guzzlehttp/guzzle": "~7.0",
1111
"phpunit/phpunit": "~9.0",
12-
"psr/simple-cache": "~1.0",
13-
"symfony/cache": "~5.0"
12+
"psr/simple-cache": ">=1.0",
13+
"symfony/cache": ">=5.0"
1414
},
1515
"autoload": {
1616
"psr-4": {

tests/unit/BasicTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function setUp(): void
5353
BackgroundProcessing::reset();
5454
}
5555

56-
public function dataRun(): array
56+
public static function dataRun(): array
5757
{
5858
$closure = function (int ...$params) {
5959
self::$counter += array_sum($params);

tests/unit/DockerizedTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
class DockerizedTest extends TestCase
3232
{
33-
public function dataRun(): array
33+
public static function dataRun(): array
3434
{
3535
return [
3636
[

0 commit comments

Comments
 (0)