Skip to content

Commit

Permalink
Add PHP 8.2 Tests Support (#465)
Browse files Browse the repository at this point in the history
* add php 8.2 to the tests workflow

* fix broken workflow

* fix broken workflow

* bump dep versions

* bump dep versions
  • Loading branch information
patinthehat authored Nov 24, 2022
1 parent c89c3ae commit 9b3ccb8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.1, 8.0]
php: [8.2, 8.1, 8.0]
laravel: [9.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
Expand All @@ -20,10 +20,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
Expand All @@ -35,9 +35,14 @@ jobs:
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none


- name: Setup Composer Pest Plugin
run: composer config --no-plugins allow-plugins.pestphp/pest-plugin true

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest
19 changes: 11 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
],
"require": {
"php": "^8.0",
"google/apiclient": "^2.7",
"laravel/framework": "^9.0",
"nesbot/carbon": "^2.0",
"spatie/laravel-package-tools": "^1.9",
"google/apiclient": "^2.12.6",
"laravel/framework": "^9.41",
"nesbot/carbon": "^2.63",
"spatie/laravel-package-tools": "^1.13.7",
"symfony/cache": "^6.0"
},
"require-dev": {
"league/flysystem": "^2.0|^3.0",
"mockery/mockery": "^1.4",
"mockery/mockery": "^1.5",
"orchestra/testbench": "^7.0",
"pestphp/pest": "^1.21",
"phpunit/phpunit": "^9.4"
"pestphp/pest": "^1.22.2",
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": {
Expand All @@ -55,7 +55,10 @@
}
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
Expand Down

0 comments on commit 9b3ccb8

Please # to comment.