Skip to content

Commit be8f9f3

Browse files
authored
Merge pull request #34 from open-source-contributions/update_deps
Update PHP requirement and dependencies
2 parents 78adfe7 + 81bc76e commit be8f9f3

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
strategy:
99
matrix:
1010
operating-system: [ubuntu-latest]
11-
php-versions: ['7.2', '7.3', '7.4']
11+
php-versions: ['7.3', '7.4', '8.0', '8.1']
1212
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1313

1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v1
1717

1818
- name: Setup PHP
19-
uses: shivammathur/setup-php@v1
19+
uses: shivammathur/setup-php@v2
2020
with:
2121
php-version: ${{ matrix.php-versions }}
2222
extensions: mbstring, pdo, pdo_mysql, intl, zip

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"homepage": "https://github.com/selective-php/video-type",
1111
"license": "MIT",
1212
"require": {
13-
"php": "^7.2"
13+
"php": "^7.3 || ^8.0"
1414
},
1515
"require-dev": {
1616
"friendsofphp/php-cs-fixer": "^3",
17-
"overtrue/phplint": "^1.1",
18-
"phpunit/phpunit": "^8 || ^9",
17+
"overtrue/phplint": "^2.3",
18+
"phpunit/phpunit": "^9",
1919
"phpstan/phpstan": "^1",
20-
"squizlabs/php_codesniffer": "^3.4"
20+
"squizlabs/php_codesniffer": "^3.5"
2121
},
2222
"scripts": {
2323
"check": [

phpunit.xml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
bootstrap="vendor/autoload.php"
34
colors="true"
45
backupGlobals="false"
56
backupStaticAttributes="false"
6-
timeoutForLargeTests="900">
7+
timeoutForLargeTests="900"
8+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
79
<testsuites>
810
<testsuite name="Tests">
911
<directory suffix="Test.php">tests</directory>
1012
</testsuite>
1113
</testsuites>
12-
<filter>
13-
<whitelist processUncoveredFilesFromWhitelist="false">
14+
<coverage processUncoveredFiles="false">
15+
<include>
1416
<directory suffix=".php">src</directory>
15-
<exclude>
16-
<directory>vendor</directory>
17-
<directory>build</directory>
18-
</exclude>
19-
</whitelist>
20-
</filter>
17+
</include>
18+
<exclude>
19+
<directory>vendor</directory>
20+
<directory>build</directory>
21+
</exclude>
22+
</coverage>
2123
</phpunit>

0 commit comments

Comments
 (0)