Skip to content

Commit

Permalink
Added support for Laravel 11.x
Browse files Browse the repository at this point in the history
  • Loading branch information
spont4e committed Mar 14, 2024
1 parent 8e89319 commit b765e0f
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 45 deletions.
16 changes: 14 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,23 @@ root = true

[*]
charset = utf-8
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
max_line_length = 120

[*.php]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[{*.html,*.less,*.sass,*.css,*.js,*.json}]
indent_size = 2

[*.{xml,yml,yaml}]
indent_size = 2

[composer.json]
indent_size = 4
39 changes: 0 additions & 39 deletions .github/workflows/run-tests-l10.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/run-tests-l11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Run Tests - Laravel 11"

on:
push:
branches: [ v7.x, master ]

pull_request:
branches: [ v7.x, master ]

jobs:
tests:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.2, 8.3 ]
laravel: [ 11.* ]
include:
- laravel: 11.*
testbench: 8.*

name: P${{ matrix.php }} - L${{ matrix.laravel }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: pdo, sqlite, pdo_sqlite

- name: Install Dependencies
run: composer install

- name: Execute tests
run: vendor/bin/phpunit
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ A MongoDB cache driver for Laravel

| **Laravel<br/>Version** | **Package<br/>Version** | **Install using<br/>this command** |
|-------------------------|-------------------------|----------------------------------------------------|
| 11.x | 7.x.x | composer require 1ff/laravel-mongodb-cache:^7.0 |
| 10.x | 6.x.x | composer require 1ff/laravel-mongodb-cache:^6.0 |
| 9.x | 5.x.x | composer require 1ff/laravel-mongodb-cache:^5.0 |
| 8.x | 4.x.x | composer require 1ff/laravel-mongodb-cache:^4.1 |
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "1ff/laravel-mongodb-cache",
"description": "A mongodb cache driver for laravel",
"type": "library",
"version": "6.0.4",
"version": "7.0.0",
"require": {
"php": "^8.1",
"illuminate/cache": "^10.0",
"php": "^8.2|^8.3",
"illuminate/cache": "^11.0",
"mongodb/laravel-mongodb": "^4.1"
},
"require-dev": {
"orchestra/testbench": "^8.0"
"orchestra/testbench": "^9.0"
},
"license": "MIT",
"authors": [
Expand Down

0 comments on commit b765e0f

Please sign in to comment.