Skip to content

Commit e93b28c

Browse files
Merge pull request #4 from 42coders/laravel9-compatibility
Laravel9 compatibility
2 parents 35749e6 + cf1eb0c commit e93b28c

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
run-tests:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
php-versions: ['8.0', '8.1']
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Setup PHP
15+
uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: ${{ matrix.php-versions }}
18+
- name: Install Dependencies
19+
run: composer update --no-interaction --prefer-source
20+
- name: Create Database
21+
run: |
22+
mkdir -p database
23+
touch database/database.sqlite
24+
- name: Execute tests (Unit and Feature tests) via PHPUnit
25+
env:
26+
DB_CONNECTION: sqlite
27+
DB_DATABASE: database/database.sqlite
28+
run: vendor/bin/phpunit

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Laravel Optimistic Locking
2-
![Build Status](http://img.shields.io/travis/reshadman/laravel-optimistic-locking/master.png?style=flat-square)
2+
[![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)
33

44
Adds optimistic locking feature to Eloquent models.
55

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

11-
> This package supports Laravel 5.5.*, 5.6.*, 5.7.*, 5.8.*, 6.* and 7.*.
11+
> This package supports Laravel 5.5.*, 5.6.*, 5.7.*, 5.8.*, 6.*, 7.*, 8.* and 9.*.
1212
1313
## Usage
1414

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
],
1212
"require": {
1313
"php": "^8.0",
14-
"illuminate/database": "^5.5.0|^6.0|^7.0|^8.0",
15-
"illuminate/support": "^5.5.0|^6.0|^7.0|^8.0"
14+
"illuminate/database": "^5.5.0|^6.0|^7.0|^8.0|^9.0",
15+
"illuminate/support": "^5.5.0|^6.0|^7.0|^8.0|^9.0"
1616
},
1717
"require-dev": {
1818
"ext-pdo_sqlite": "*",
1919
"mockery/mockery": "^1.0.0",
20-
"orchestra/testbench": "~3.5.0|~3.6.0|~3.8.0|^4.0|^5.0",
20+
"orchestra/testbench": "~3.5.0|~3.6.0|~3.8.0|^4.0|^5.0|^6.0|^7.0",
2121
"phpunit/phpunit" : "^7.0|^8.0|^9.0"
2222
},
2323
"autoload": {

0 commit comments

Comments
 (0)