Skip to content

Commit

Permalink
Merge pull request #3 from ethical-jobs/bump-to-min-php81
Browse files Browse the repository at this point in the history
Bump to min php81
  • Loading branch information
mattwithoos committed Jul 13, 2022
2 parents 85c052f + 22f5007 commit e1703bf
Show file tree
Hide file tree
Showing 5 changed files with 2,448 additions and 1,165 deletions.
43 changes: 16 additions & 27 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
name: PHPUnit suite

on:
push:
paths:
- 'src/**'
- 'tests/**'
- 'phpunit.xml'
- 'composer.*'
pull_request:
paths:
- 'src/**'
- 'tests/**'
- 'phpunit.xml'
- 'composer.*'
name: tests

on: [pull_request]

jobs:
phpunit-tests:
tests:
runs-on: ubuntu-latest

name: PHPUnit (PHP 7.3)
strategy:
fail-fast: false
matrix:
php: [8.1]
stability: [prefer-stable]

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

steps:
- name: Checkout code
Expand All @@ -27,17 +21,12 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
extensions: dom, curl, libxml, mbstring, zip
tools: composer:v2
coverage: none
php-version: ${{ matrix.php }}
extensions: bcmul
coverage: pcov

- name: Install dependencies
run: |
composer install --no-plugins --no-scripts --no-interaction --no-progress --prefer-dist
- name: Configure matchers
uses: mheap/phpunit-matcher-action@v1
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/phpunit --teamcity
run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

## Compatibility

- `v3.*` - Laravel 8 or higher, php 8.1 or higher
- `v2.*` - Laravel 8 or higher
- `v1.*` - Laravel 5.6 to 5.9. Laravel 7 support unknown

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"description": "Laravel repository storage package",
"license": "MIT",
"require": {
"php": "^7.3",
"ethical-jobs/utilities": "^1.0",
"php": "~8.1",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"mockery/mockery": "^1.4",
"fakerphp/faker": "^1.13",
"orchestra/testbench": "^5.0",
"orchestra/database": "^5.1"
"phpunit/phpunit": "^9.5",
"mockery/mockery": "^1.5",
"fakerphp/faker": "^1.19",
"orchestra/testbench": "*",
"orchestra/database": "*",
"laravel/legacy-factories": "^1.3"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit e1703bf

Please sign in to comment.