Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ changelog:
- title: New Features
labels:
- enhancement
- feature
- title: Fixed
labels:
- bug
- fixed
- title: Documentation Changes
labels:
- docs
- title: Other Changes
labels:
- "*"
21 changes: 13 additions & 8 deletions .github/workflows/build-ci-atlas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- "[0-9]+.[0-9x]+"
- "feature/*"
pull_request:
branches:
- "[0-9]+.[0-9x]+"
Expand All @@ -16,28 +15,34 @@ env:

jobs:
build:
runs-on: "${{ matrix.os }}"
runs-on: "ubuntu-latest"

name: "PHP/${{ matrix.php }} Laravel/${{ matrix.laravel }} Driver/${{ matrix.driver }}"

strategy:
matrix:
os:
- "ubuntu-latest"
php:
- "8.2"
- "8.3"
- "8.4"
- "8.5"
laravel:
- "11.*"
- "12.*"
driver:
- 1
- 2
include:
# Test Laravel 10
- php: "8.1"
laravel: "10.*"
driver: 1
# Test Laravel 11
- php: "8.2"
laravel: "11.*"
driver: 1
# Test Driver v1
- php: "8.4"
laravel: "12.*"
os: "ubuntu-latest"
driver: 2
driver: 1

steps:
- uses: "actions/checkout@v5"
Expand Down
47 changes: 28 additions & 19 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- "[0-9]+.[0-9x]+"
- "feature/*"
pull_request:
branches:
- "[0-9]+.[0-9x]+"
Expand All @@ -16,53 +15,63 @@ env:

jobs:
build:
runs-on: "${{ matrix.os }}"
runs-on: "ubuntu-latest"

name: "PHP/${{ matrix.php }} Laravel/${{ matrix.laravel }} Driver/${{ matrix.driver }} Server/${{ matrix.mongodb }} ${{ matrix.mode }}"

strategy:
matrix:
os:
- "ubuntu-latest"
mongodb:
- "4.4"
- "5.0"
- "6.0"
- "7.0"
- "8.0"
php:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
- "8.5"
laravel:
- "10.*"
- "11.*"
- "12.*"
driver:
- 2
include:
# Test Lowest dependencies
- php: "8.1"
laravel: "10.*"
mongodb: "5.0"
mode: "low-deps"
os: "ubuntu-latest"
driver: 1
# Test Driver v1
- php: "8.3"
laravel: "11.*"
mongodb: "8.0"
os: "ubuntu-latest"
laravel: "10.*"
mongodb: "4.4"
driver: 1
- php: "8.4"
laravel: "12.*"
mongodb: "8.0"
os: "ubuntu-latest"
driver: 1
exclude:
- php: "8.1"
# Test Laravel 10
- php: "8.4"
laravel: "10.*"
mongodb: "8.0"
# Test Laravel 11
- php: "8.4"
laravel: "11.*"
- php: "8.1"
mongodb: "8.0"
# Test all server versions
- php: "8.4"
laravel: "12.*"
mongodb: "4.4"
- php: "8.4"
laravel: "12.*"
mongodb: "5.0"
- php: "8.4"
laravel: "12.*"
mongodb: "6.0"
- php: "8.4"
laravel: "12.*"
mongodb: "7.0"
- php: "8.4"
laravel: "12.*"
mongodb: "8.0"

steps:
- uses: "actions/checkout@v5"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- "[0-9]+.[0-9x]+"
- "feature/*"
pull_request:
branches:
- "[0-9]+.[0-9x]+"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
- uses: actions/labeler@v6
1 change: 0 additions & 1 deletion .github/workflows/merge-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- "[0-9]+.[0-9x]+"
- "feature/*"

env:
GH_TOKEN: ${{ secrets.MERGE_UP_TOKEN }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: echo '🎬 Release process for version ${{ inputs.version }} started by @${{ github.triggering_actor }}' >> $GITHUB_STEP_SUMMARY

- name: "Generate token and checkout repository"
uses: mongodb-labs/drivers-github-tools/secure-checkout@v2
uses: mongodb-labs/drivers-github-tools/secure-checkout@v3
with:
app_id: ${{ vars.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
#

- name: "Set up drivers-github-tools"
uses: mongodb-labs/drivers-github-tools/setup@v2
uses: mongodb-labs/drivers-github-tools/setup@v3
with:
aws_role_arn: ${{ secrets.AWS_ROLE_ARN }}
aws_region_name: ${{ vars.AWS_REGION_NAME }}
Expand All @@ -82,7 +82,7 @@ jobs:
run: echo "RELEASE_URL=$(gh release create ${{ inputs.version }} --target ${{ github.ref_name }} --title "${{ inputs.version }}" --generate-notes --draft)" >> "$GITHUB_ENV"

- name: "Create release tag"
uses: mongodb-labs/drivers-github-tools/tag-version@v2
uses: mongodb-labs/drivers-github-tools/tag-version@v3
with:
version: ${{ inputs.version }}
tag_message_template: 'Release ${VERSION}'
Expand Down Expand Up @@ -121,22 +121,22 @@ jobs:

steps:
- name: "Generate token and checkout repository"
uses: mongodb-labs/drivers-github-tools/secure-checkout@v2
uses: mongodb-labs/drivers-github-tools/secure-checkout@v3
with:
app_id: ${{ vars.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
ref: refs/tags/${{ inputs.version }}

# Sets the S3_ASSETS environment variable used later
- name: "Set up drivers-github-tools"
uses: mongodb-labs/drivers-github-tools/setup@v2
uses: mongodb-labs/drivers-github-tools/setup@v3
with:
aws_role_arn: ${{ secrets.AWS_ROLE_ARN }}
aws_region_name: ${{ vars.AWS_REGION_NAME }}
aws_secret_id: ${{ secrets.AWS_SECRET_ID }}

- name: "Generate SSDLC Reports"
uses: mongodb-labs/drivers-github-tools/full-report@v2
uses: mongodb-labs/drivers-github-tools/full-report@v3
with:
product_name: "MongoDB Laravel Integration"
release_version: ${{ inputs.version }}
Expand All @@ -147,7 +147,7 @@ jobs:
continue-on-error: true

- name: Upload S3 assets
uses: mongodb-labs/drivers-github-tools/upload-s3-assets@v2
uses: mongodb-labs/drivers-github-tools/upload-s3-assets@v3
with:
version: ${{ inputs.version }}
product_name: laravel-mongodb
12 changes: 7 additions & 5 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- "[0-9]+.[0-9x]+"
- "feature/*"
pull_request:
branches:
- "[0-9]+.[0-9x]+"
Expand All @@ -17,7 +16,7 @@ on:
required: true

env:
PHP_VERSION: "8.2"
PHP_VERSION: "8.5"
DRIVER_VERSION: "stable"
MONGODB_EXT_V1: mongodb-1.21.0
MONGODB_EXT_V2: mongodb-mongodb/mongo-php-driver@v2.x
Expand All @@ -34,9 +33,12 @@ jobs:
- '8.2'
- '8.3'
- '8.4'
- '8.5'
driver:
- 1
- 2
include:
- php: "8.4"
driver: 1
steps:
- name: Checkout
uses: actions/checkout@v5
Expand Down Expand Up @@ -89,13 +91,13 @@ jobs:

- name: "Upload SARIF report"
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: "github/codeql-action/upload-sarif@v3"
uses: "github/codeql-action/upload-sarif@v4"
with:
sarif_file: phpstan.sarif

- name: "Upload SARIF report"
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: "github/codeql-action/upload-sarif@v3"
uses: "github/codeql-action/upload-sarif@v4"
with:
sarif_file: phpstan.sarif
ref: ${{ inputs.ref }}
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"illuminate/database": "^10.30|^11|^12",
"illuminate/events": "^10.0|^11|^12",
"illuminate/support": "^10.0|^11|^12",
"mongodb/mongodb": "^1.21|^2",
"symfony/http-foundation": "^6.4|^7"
"mongodb/mongodb": "^1.21|^2"
},
"require-dev": {
"laravel/scout": "^10.3",
Expand Down
9 changes: 0 additions & 9 deletions src/Session/MongoDbSessionHandler.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace MongoDB\Laravel\Session;

use Illuminate\Session\DatabaseSessionHandler;
Expand Down
Loading