Skip to content

Commit

Permalink
Added Laravel 10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Feb 15, 2023
1 parent 7124caf commit fe1c9cd
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 173 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: code-style

on:
push:
pull_request:

permissions: write-all

jobs:
check:
if: ${{ ! (github.event_name == 'push' && github.ref == 'refs/heads/main') }}

runs-on: ubuntu-latest

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

- name: Checking PHP Syntax
uses: TheDragonCode/[email protected]

fix:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

runs-on: ubuntu-latest

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

- name: Checking PHP Syntax
uses: TheDragonCode/[email protected]
with:
github_token: ${{ secrets.COMPOSER_TOKEN }}
fix: true
31 changes: 0 additions & 31 deletions .github/workflows/laravel-8.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/laravel-9.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/lint-check.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/lint-fixer.yml

This file was deleted.

22 changes: 16 additions & 6 deletions .github/workflows/laravel-7.yml → .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
name: "Laravel 7"
name: phpunit

on: [ push ]

jobs:
phpunit:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ "8.0" ]
laravel: [ "7.0" ]
php: [ "8.0", "8.1", "8.2" ]
laravel: [ "7.0", "8.0", "9.0", "10.0" ]
exclude:
- laravel: "7.0"
php: "8.1"

- laravel: "7.0"
php: "8.2"

- laravel: "10.0"
php: "8.0"

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

steps:
- name: Checkout code
Expand All @@ -25,7 +35,7 @@ jobs:
coverage: none

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

- name: Execute tests
run: sudo vendor/bin/phpunit
67 changes: 0 additions & 67 deletions .styleci.yml

This file was deleted.

13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"keywords": [
"laravel",
"routes",
"pretty"
"pretty",
"pretty-routes",
"route",
"routing"
],
"authors": [
{
Expand Down Expand Up @@ -41,14 +44,14 @@
"php": "^8.0",
"dragon-code/contracts": "^2.6",
"dragon-code/support": "^6.1",
"illuminate/routing": "^7.0 || ^8.0 || ^9.0",
"illuminate/support": "^7.0 || ^8.0 || ^9.0",
"illuminate/routing": "^7.0 || ^8.0 || ^9.0 || ^10.0",
"illuminate/support": "^7.0 || ^8.0 || ^9.0 || ^10.0",
"phpdocumentor/reflection-docblock": "^5.0"
},
"require-dev": {
"mockery/mockery": "^1.0",
"orchestra/testbench": "^5.0 || ^6.0 || ^7.0",
"phpunit/phpunit": "^9.0"
"orchestra/testbench": "^5.0 || ^6.0 || ^7.0 || ^8.0",
"phpunit/phpunit": "^9.6"
},
"conflict": {
"andrey-helldar/laravel-routes-core": "*",
Expand Down

0 comments on commit fe1c9cd

Please sign in to comment.