Skip to content

Commit 3f29d7d

Browse files
authored
update sniffer and phpunit and github ci actions (#45)
1 parent a4f499a commit 3f29d7d

File tree

5 files changed

+396
-486
lines changed

5 files changed

+396
-486
lines changed

.github/workflows/opencast-php-lib-ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
php-version:
14-
- "7.4"
15-
- "8.0"
1614
- "8.1"
1715
- "8.2"
16+
- "8.3"
1817
dependency-versions:
1918
- "lowest"
2019
- "highest"
2120

2221
steps:
2322
- name: Repo checkout
24-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2524

2625
- name: Setup PHP
2726
uses: shivammathur/setup-php@v2
@@ -30,7 +29,7 @@ jobs:
3029
coverage: none
3130

3231
- name: Install composer dependencies
33-
uses: ramsey/composer-install@v2
32+
uses: ramsey/composer-install@v3
3433
with:
3534
dependency-versions: ${{ matrix.dependency-versions }}
3635

@@ -43,7 +42,7 @@ jobs:
4342
runs-on: ubuntu-latest
4443
steps:
4544
- name: Repo checkout
46-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4746

4847
- name: Setup PHP
4948
uses: shivammathur/setup-php@v2
@@ -52,9 +51,9 @@ jobs:
5251
coverage: none
5352

5453
- name: Install composer dependencies
55-
uses: ramsey/composer-install@v2
54+
uses: ramsey/composer-install@v3
5655
with:
5756
dependency-versions: 8.1
5857

5958
- name: Run PHPUnit
60-
run: vendor/bin/phpunit
59+
run: vendor/bin/phpunit --display-incomplete --display-phpunit-deprecations --display-deprecations --display-errors --display-warnings --display-skipped --display-notices

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.DS_Store
55
.gitignore
66
.lmsupdatenotes
7+
.phpunit.cache

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
}
3131
},
3232
"scripts": {
33-
"sniffer:php7.4": "phpcs -p -v ./src --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 7.4",
3433
"sniffer:php8.0": "phpcs -p -v ./src --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.0",
3534
"sniffer:php8.1": "phpcs -p -v ./src --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.1",
36-
"sniffer:php8.2": "phpcs -p -v ./src --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.2"
35+
"sniffer:php8.2": "phpcs -p -v ./src --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.2",
36+
"sniffer:php8.3": "phpcs -p -v ./src --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.3"
3737
},
3838
"require-dev": {
39-
"phpunit/phpunit": "^9.5",
4039
"squizlabs/php_codesniffer": "^3.7",
41-
"phpcompatibility/php-compatibility": "^9.3"
40+
"phpcompatibility/php-compatibility": "^9.3",
41+
"phpunit/phpunit": "^10.5"
4242
},
4343
"autoload-dev": {
4444
"psr-4": {

0 commit comments

Comments
 (0)