Skip to content

Laravel9 compatibility #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 9, 2022
Merged
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
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests

on: [push, pull_request]

jobs:
run-tests:

runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.1']
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install Dependencies
run: composer update --no-interaction --prefer-source
- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: vendor/bin/phpunit
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Laravel Optimistic Locking
![Build Status](http://img.shields.io/travis/reshadman/laravel-optimistic-locking/master.png?style=flat-square)
[![Build Status](https://github.com/42coders/laravel-optimistic-locking/actions/workflows/test.yml/badge.svg)](https://github.com/42coders/laravel-optimistic-locking/actions/workflows/test.yml)

Adds optimistic locking feature to Eloquent models.

Expand All @@ -8,7 +8,7 @@ Adds optimistic locking feature to Eloquent models.
composer require reshadman/laravel-optimistic-locking
```

> This package supports Laravel 5.5.*, 5.6.*, 5.7.*, 5.8.*, 6.* and 7.*.
> This package supports Laravel 5.5.*, 5.6.*, 5.7.*, 5.8.*, 6.*, 7.*, 8.* and 9.*.

## Usage

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
],
"require": {
"php": "^8.0",
"illuminate/database": "^5.5.0|^6.0|^7.0|^8.0",
"illuminate/support": "^5.5.0|^6.0|^7.0|^8.0"
"illuminate/database": "^5.5.0|^6.0|^7.0|^8.0|^9.0",
"illuminate/support": "^5.5.0|^6.0|^7.0|^8.0|^9.0"
},
"require-dev": {
"ext-pdo_sqlite": "*",
"mockery/mockery": "^1.0.0",
"orchestra/testbench": "~3.5.0|~3.6.0|~3.8.0|^4.0|^5.0",
"orchestra/testbench": "~3.5.0|~3.6.0|~3.8.0|^4.0|^5.0|^6.0|^7.0",
"phpunit/phpunit" : "^7.0|^8.0|^9.0"
},
"autoload": {
Expand Down