From f59211eae998eba5f8abf69756b63b7577f1925c Mon Sep 17 00:00:00 2001 From: Ivaylo Mutafov Date: Thu, 31 Aug 2023 11:37:03 +0300 Subject: [PATCH 1/2] Added support for Laravel 10.x (#23) --- .github/workflows/run-tests-l10.yml | 39 +++++++++++++++++++++++++++++ .phprc | 1 + README.md | 9 ++++--- composer.json | 9 ++++--- 4 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/run-tests-l10.yml create mode 100644 .phprc diff --git a/.github/workflows/run-tests-l10.yml b/.github/workflows/run-tests-l10.yml new file mode 100644 index 0000000..8ded92d --- /dev/null +++ b/.github/workflows/run-tests-l10.yml @@ -0,0 +1,39 @@ +name: "Run Tests - Laravel 10" + +on: + push: + branches: [ v6.x, master ] + + pull_request: + branches: [ v6.x, master ] + +jobs: + tests: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php: [8.1] + laravel: [10.*] + include: + - laravel: 10.* + 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 diff --git a/.phprc b/.phprc new file mode 100644 index 0000000..6e3833a --- /dev/null +++ b/.phprc @@ -0,0 +1 @@ +php8.1 diff --git a/README.md b/README.md index c84a2a7..6bea5f7 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,12 @@ A MongoDB cache driver for Laravel | **Laravel
Version** | **Package
Version** | **Install using
this command** | |-------------------------|-------------------------|----------------------------------------------------| -| 5.7.x | 2.11.x | composer require 1ff/laravel-mongodb-cache:~2.11.0 | -| 5.8.x, 6.x | 2.12.x | composer require 1ff/laravel-mongodb-cache:~2.12.0 | -| 7.x | 3.x.x | composer require 1ff/laravel-mongodb-cache:^3.1 | -| 8.x | 4.x.x | composer require 1ff/laravel-mongodb-cache:^4.1 | +| 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 | +| 7.x | 3.x.x | composer require 1ff/laravel-mongodb-cache:^3.1 | +| 5.8.x, 6.x | 2.12.x | composer require 1ff/laravel-mongodb-cache:~2.12.0 | +| 5.7.x | 2.11.x | composer require 1ff/laravel-mongodb-cache:~2.11.0 | Installation ------------ diff --git a/composer.json b/composer.json index ab054ea..badbe48 100644 --- a/composer.json +++ b/composer.json @@ -2,13 +2,14 @@ "name": "1ff/laravel-mongodb-cache", "description": "A mongodb cache driver for laravel", "type": "library", - "version": "5.0.0", + "version": "6.0.0", "require": { - "jenssegers/mongodb": "~3.9", - "illuminate/cache": "^9.0" + "php": "^8.1", + "illuminate/cache": "^10.0", + "mongodb/laravel-mongodb": "dev-master" }, "require-dev": { - "orchestra/testbench": "^7.0" + "orchestra/testbench": "^8.0" }, "license": "MIT", "authors": [ From 95a2156ccd9aaa4324155a4ec6e19ddf3646a728 Mon Sep 17 00:00:00 2001 From: Ivaylo Mutafov Date: Tue, 5 Sep 2023 11:38:56 +0300 Subject: [PATCH 2/2] Updated mongodb/laravel-mongodb (#24) --- .github/workflows/run-tests-l5.yml | 39 ------------------------------ .github/workflows/run-tests-l6.yml | 39 ------------------------------ .github/workflows/run-tests-l7.yml | 39 ------------------------------ .github/workflows/run-tests-l8.yml | 39 ------------------------------ .github/workflows/run-tests-l9.yml | 39 ------------------------------ composer.json | 4 +-- 6 files changed, 2 insertions(+), 197 deletions(-) delete mode 100644 .github/workflows/run-tests-l5.yml delete mode 100644 .github/workflows/run-tests-l6.yml delete mode 100644 .github/workflows/run-tests-l7.yml delete mode 100644 .github/workflows/run-tests-l8.yml delete mode 100644 .github/workflows/run-tests-l9.yml diff --git a/.github/workflows/run-tests-l5.yml b/.github/workflows/run-tests-l5.yml deleted file mode 100644 index 0f01be5..0000000 --- a/.github/workflows/run-tests-l5.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: "Run Tests - Laravel 5" - -on: - push: - branches: [ v2.12 ] - - pull_request: - branches: [ v2.12 ] - -jobs: - tests: - - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - php: [7.2, 7.3, 7.4] - laravel: [5.*] - include: - - laravel: 5.* - testbench: 3 - - 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 diff --git a/.github/workflows/run-tests-l6.yml b/.github/workflows/run-tests-l6.yml deleted file mode 100644 index e6468cb..0000000 --- a/.github/workflows/run-tests-l6.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: "Run Tests - Laravel 6" - -on: - push: - branches: [ v2.12 ] - - pull_request: - branches: [ v2.12 ] - -jobs: - tests: - - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - php: [7.2, 7.3, 7.4] - laravel: [6.*] - include: - - laravel: 6.* - testbench: 4 - - 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 diff --git a/.github/workflows/run-tests-l7.yml b/.github/workflows/run-tests-l7.yml deleted file mode 100644 index 727b681..0000000 --- a/.github/workflows/run-tests-l7.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: "Run Tests - Laravel 7" - -on: - push: - branches: [ v3.x ] - - pull_request: - branches: [ v3.x ] - -jobs: - tests: - - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - php: [7.2, 7.3, 7.4, 8.0] - laravel: [7.*] - include: - - laravel: 7.* - testbench: 5 - - 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 diff --git a/.github/workflows/run-tests-l8.yml b/.github/workflows/run-tests-l8.yml deleted file mode 100644 index 3bf75c4..0000000 --- a/.github/workflows/run-tests-l8.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: "Run Tests - Laravel 8" - -on: - push: - branches: [ v4.x ] - - pull_request: - branches: [ v4.x ] - -jobs: - tests: - - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - php: [7.3, 7.4, 8.0] - laravel: [8.*] - include: - - laravel: 8.* - testbench: 6 - - 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 diff --git a/.github/workflows/run-tests-l9.yml b/.github/workflows/run-tests-l9.yml deleted file mode 100644 index ea21b01..0000000 --- a/.github/workflows/run-tests-l9.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: "Run Tests - Laravel 9" - -on: - push: - branches: [ v5.x, master ] - - pull_request: - branches: [ v5.x, master ] - -jobs: - tests: - - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - php: [8.0] - laravel: [9.*] - include: - - laravel: 9.* - testbench: 7.* - - 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 diff --git a/composer.json b/composer.json index badbe48..c69e2bb 100644 --- a/composer.json +++ b/composer.json @@ -2,11 +2,11 @@ "name": "1ff/laravel-mongodb-cache", "description": "A mongodb cache driver for laravel", "type": "library", - "version": "6.0.0", + "version": "6.0.1", "require": { "php": "^8.1", "illuminate/cache": "^10.0", - "mongodb/laravel-mongodb": "dev-master" + "mongodb/laravel-mongodb": "4.0.0-ALPHA2" }, "require-dev": { "orchestra/testbench": "^8.0"