Skip to content

Commit

Permalink
Merge pull request #8 from Laravel-Lang/2.x
Browse files Browse the repository at this point in the history
Removed support for older versions of Laravel
  • Loading branch information
andrey-helldar authored Dec 16, 2023
2 parents 288cc06 + 2b200f0 commit ed9b8b9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 96 deletions.
87 changes: 0 additions & 87 deletions .github/workflows/laravel.yml

This file was deleted.

15 changes: 11 additions & 4 deletions .github/workflows/phpunit.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "phpunit"
name: Tests

on: [ push ]

Expand All @@ -8,7 +8,13 @@ jobs:
laravel:
runs-on: ubuntu-latest

name: PHP Unit
strategy:
fail-fast: true
matrix:
php: [ "8.1", "8.2", "8.3" ]
laravel: [ "10.0" ]

name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}

steps:
- name: Checkout code
Expand All @@ -17,13 +23,14 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
coverage: none
coverage: xdebug
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies
run: composer update
run: composer require laravel/framework:^${{ matrix.laravel }}

- name: Execute tests
run: sudo vendor/bin/phpunit
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
}
],
"require": {
"php": "^7.2 || ^8.0",
"illuminate/support": ">=6.0 <11.0",
"illuminate/translation": ">=6.0 <11.0"
"php": "^8.1",
"illuminate/support": "^10.0",
"illuminate/translation": "^10.0"
},
"require-dev": {
"orchestra/testbench": ">=4.0 <9.0",
"phpunit/phpunit": "^8.5 || ^9.0"
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^10.0"
},
"minimum-stability": "stable",
"autoload": {
Expand Down

0 comments on commit ed9b8b9

Please sign in to comment.