Skip to content

Commit

Permalink
ci(test): Use PHPUnit polyfills (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptondereau authored Dec 2, 2020
1 parent 0c2b799 commit 2026a0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ on:

jobs:
run:
runs-on: ubuntu-16.04
runs-on: ubuntu-latest

strategy:
matrix:
php: [7.1, 7.2, 7.3, 7.4]
php-versions: [7.1, 7.2, 7.3, 7.4]
include:
- php-versions: "8.0"
dependencies: "highest"
composer-options: "--ignore-platform-req=php"

name: PHP ${{ matrix.php }}
name: PHP ${{ matrix.php-versions }}

steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: ${{ matrix.php-versions }}
coverage: xdebug
tools: composer:v2
- name: Install dependencies
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"psr/log": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0 || ^9.3"
"phpunit/phpunit": "^7.0",
"yoast/phpunit-polyfills": "^0.2.0"
},
"suggest": {
"ext-soap": "Required if you need the Tradeability API of UPS"
Expand Down

0 comments on commit 2026a0d

Please sign in to comment.