-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from imliam/laravel-8
Add Laravel 8 support
- Loading branch information
Showing
7 changed files
with
51 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: imliam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Run Tests | ||
on: [push] | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 15 | ||
fail-fast: false | ||
matrix: | ||
php-versions: ['7.3', '7.4'] | ||
composer-flags: ['--prefer-lowest', '--prefer-stable'] | ||
env: | ||
- LARAVEL_VERSION='^7.0' TESTBENCH_VERSION='^5.0' | ||
- LARAVEL_VERSION='^8.0' TESTBENCH_VERSION='^6.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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ preset: laravel | |
|
||
disabled: | ||
- single_class_element_per_statement | ||
- self_accessor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters