Skip to content

Commit

Permalink
Support PHP 8.0 (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
Propaganistas authored Dec 6, 2020
1 parent 0cb8801 commit f2765e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4]
php: [7.2, 7.3, 7.4, 8.0]
laravel: [6.*, 7.*, 8.*]
dependency-version: [prefer-lowest, prefer-stable]
exclude:
Expand All @@ -37,7 +37,12 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, json, intl, libxml, mbstring, pdo, pdo_sqlite, sqlite


- name: Setup Problem Matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Cache dependencies
uses: actions/cache@v1
with:
Expand All @@ -48,9 +53,6 @@ jobs:
run: |
composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest --no-progress
- name: Configure matchers
uses: mheap/phpunit-matcher-action@master
- name: Execute tests
run: vendor/bin/phpunit --teamcity
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
}
],
"require": {
"php": ">=7.1",
"php": "^7.1|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0",
"illuminate/validation": "^6.0|^7.0|^8.0",
"giggsey/libphonenumber-for-php": "^7.0|^8.0",
"league/iso3166": "^2.0"
"league/iso3166": "^2.0|^3.0"
},
"require-dev": {
"orchestra/testbench": "*",
Expand Down

0 comments on commit f2765e3

Please sign in to comment.