Skip to content

Commit

Permalink
feat: update to Pest 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Mar 23, 2023
1 parent 4ac72f6 commit 6bd26c7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 28 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ jobs:
matrix:
os: [ubuntu-latest]
php: [8.2]
laravel: [9.*, 10.*]
laravel: [10.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*

Expand All @@ -41,8 +39,8 @@ jobs:
- name: Install Composer dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --ansi
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ansi
- name: Execute tests
run: composer test:unit
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.idea
.php_cs
.php_cs.cache
.phpunit.result.cache
.phpunit.cache
build
composer.lock
coverage
Expand Down
17 changes: 8 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@
],
"require": {
"php": "^8.2",
"guzzlehttp/guzzle": "^7.4",
"illuminate/contracts": "^9.0|^10.0",
"guzzlehttp/guzzle": "^7.5",
"illuminate/contracts": "^10.0",
"launchdarkly/server-sdk": "^4.2",
"spatie/laravel-package-tools": "^1.12.1"
"spatie/laravel-package-tools": "^1.14.1"
},
"require-dev": {
"nunomaduro/collision": "^6.3.1",
"orchestra/testbench": "^7.6|^8.0",
"pestphp/pest": "1.22.2",
"pestphp/pest-plugin-laravel": "1.4.0",
"pestphp/pest-plugin-parallel": "1.2.0",
"worksome/coding-style": "^2.3"
"nunomaduro/collision": "^7.0",
"orchestra/testbench": "^8.0",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
"worksome/coding-style": "^2.5"
},
"autoload": {
"psr-4": {
Expand Down
14 changes: 1 addition & 13 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,9 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
verbose="true"
cacheDirectory=".phpunit.cache"
>
<testsuites>
<testsuite name="Worksome Test Suite">
Expand Down

0 comments on commit 6bd26c7

Please sign in to comment.