Skip to content

Commit

Permalink
Drop Laravel 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ksassnowski committed Jun 7, 2020
1 parent b5c9345 commit 6e5d48f
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 138 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,8 @@ on:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
php: [7.4]
laravel: [7.*, 6.*]
dependency-version: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]
include:
- laravel: 7.*
- laravel: 6.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
name: Run tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
Expand All @@ -29,15 +19,14 @@ jobs:
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v1
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
php-version: 7.4
tools: prestissimo
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
run: composer install

- name: Execute tests
run: vendor/bin/pest
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
],
"require": {
"php": "^7.4",
"laravel/framework": "^6.0 | ^7.0",
"pda/pheanstalk": "^4.0",
"mockery/mockery": "^1.4"
"laravel/framework": "^7.0",
"pda/pheanstalk": "^4.0"
},
"require-dev": {
"phpunit/phpunit": "^9.2",
"pestphp/pest": "^0.1.5"
"pestphp/pest": "^0.1.5",
"mockery/mockery": "^1.4"
},
"autoload": {
"psr-4": {
Expand Down
234 changes: 117 additions & 117 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e5d48f

Please sign in to comment.