Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit 52ee6e5

Browse files
authored
Merge pull request #10 from kick-the-bucket/php8-support
#9 Added PHP 8.0 support
2 parents d1bf37c + d9853c6 commit 52ee6e5

14 files changed

+194
-1854
lines changed

.github/workflows/test.yml

Lines changed: 41 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,46 @@ jobs:
1212
build:
1313
strategy:
1414
matrix:
15-
php:
16-
- 5.6
17-
- 7
18-
- 7.1
19-
- 7.2
20-
- 7.3
21-
- 7.4
15+
include:
16+
- php: 5.6
17+
phpunit: 5
18+
- php: '7.0'
19+
phpunit: 6
20+
- php: 7.1
21+
phpunit: 7
22+
- php: 7.2
23+
phpunit: 8
24+
- php: 7.3
25+
phpunit: 9
26+
- php: 7.4
27+
phpunit: 9
28+
- php: '8.0'
29+
phpunit: 9
30+
2231
runs-on: ubuntu-latest
32+
2333
steps:
24-
- uses: actions/checkout@v2
25-
- name: Install PHP
26-
uses: shivammathur/setup-php@v2
27-
with:
28-
php-version: '${{ matrix.php }}'
29-
coverage: none
30-
- name: Install dependencies
31-
run: |
32-
composer --no-plugins --no-scripts install
33-
composer --no-plugins --no-scripts dump-autoload -o
34-
vendor/bin/phpunit --configuration ./phpunit.xml --teamcity
34+
- uses: actions/checkout@v2
35+
36+
- name: Install PHP
37+
uses: shivammathur/setup-php@v2
38+
with:
39+
php-version: ${{ matrix.php }}
40+
coverage: none
41+
42+
- name: Cache Composer dependencies
43+
uses: actions/cache@v2
44+
with:
45+
path: /tmp/composer-cache
46+
key: php${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
47+
48+
- name: Install dependencies
49+
uses: php-actions/composer@v5
50+
with:
51+
php_version: ${{ matrix.php }}
52+
53+
- name: Run tests
54+
uses: php-actions/phpunit@v3
55+
with:
56+
php_version: ${{ matrix.php }}
57+
version: ${{ matrix.phpunit }}

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
}
1919
],
2020
"require": {
21-
"phpseclib/phpseclib": "^2.0"
21+
"phpseclib/phpseclib": "^2.0",
22+
"symfony/polyfill-php70": "^1.19"
2223
},
2324
"require-dev": {
24-
"phpunit/phpunit": "^5.7",
25-
"guzzlehttp/guzzle": "^6.2"
25+
"guzzlehttp/guzzle": "^6.2",
26+
"yoast/phpunit-polyfills": "^1.0"
2627
},
2728
"suggest": {
2829
"psr/http-message": "Allow usage of the PsrHttpMessageEncryptionInterceptor class"

0 commit comments

Comments
 (0)