Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 36 additions & 30 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,48 @@
name: Run Tests
on: [push]

on:
- push

jobs:
run:
runs-on: ubuntu-latest

strategy:
max-parallel: 15
fail-fast: false
matrix:
php-versions: ['7.3', '7.4', '8.0', 8.1]
php-versions: ['7.3', '7.4', '8.0', 8.1, '8.2']
composer-flags: ['--prefer-lowest', '--prefer-stable']
env:
- LARAVEL_VERSION='^7.0' TESTBENCH_VERSION='^5.0'
- LARAVEL_VERSION='^8.0' TESTBENCH_VERSION='^6.0'
- LARAVEL_VERSION='^9.0' TESTBENCH_VERSION='^7.0'
env: ["LARAVEL_VERSION='^7.0' TESTBENCH_VERSION='^5.0'", "LARAVEL_VERSION='^8.0' TESTBENCH_VERSION='^6.0'", "LARAVEL_VERSION='^9.0' TESTBENCH_VERSION='^7.0'"]

name: Test on PHP ${{ matrix.php-versions }}, Laravel ${{ matrix.laravel-versions }} and ${{ matrix.composer-flags }}

steps:
- name: Checkout
uses: actions/checkout@master
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
- name: Check Environment
run: |
${{ matrix.env }}
php -v
composer -V
php -m
echo "Laravel version ${LARAVEL_VERSION}"
echo "Orchestra Testbench version ${TESTBENCH_VERSION}"
- name: Install Dependencies
run: |
${{ matrix.env }}
composer config discard-changes true
composer self-update
composer require --dev "laravel/framework:${LARAVEL_VERSION}" --no-interaction --no-update
composer require --dev "orchestra/testbench:${TESTBENCH_VERSION}" --no-interaction --no-update
composer update ${{ matrix.composer-flags }} --prefer-dist --no-suggest --no-interaction
- name: Run PHPUnit
run: php vendor/bin/phpunit
- name: Checkout
uses: actions/checkout@master

- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}

- name: Check Environment
run: |
${{ matrix.env }}
php -v
composer -V
php -m
echo "Laravel version ${LARAVEL_VERSION}"
echo "Orchestra Testbench version ${TESTBENCH_VERSION}"

- name: Install Dependencies
run: |
${{ matrix.env }}
composer config discard-changes true
composer self-update
composer require --dev "laravel/framework:${LARAVEL_VERSION}" --no-interaction --no-update
composer require --dev "orchestra/testbench:${TESTBENCH_VERSION}" --no-interaction --no-update
composer update ${{ matrix.composer-flags }} --prefer-dist --no-suggest --no-interaction

- name: Run PHPUnit
run: php vendor/bin/phpunit
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
],
"require": {
"php": "^7.3|^8.0",
"illuminate/support": "^7.0|^8.0|^9.0|^10.0"
"illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0|^8.0|^9.0",
"phpunit/phpunit": "^7.0|^8.0|^9.0|^10.5",
"larapack/dd": "^1.0",
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0",
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0",
"mockery/mockery": "^1.0"
},
"autoload": {
Expand Down