Skip to content

Commit c48510c

Browse files
committed
Add support for Laravel 9
1 parent febe61c commit c48510c

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

.github/workflows/run-tests.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,33 @@ on: [ push, pull_request ]
44

55
jobs:
66
test:
7-
runs-on: ${{ matrix.os }}
7+
runs-on: ubuntu-latest
88
strategy:
99
fail-fast: true
1010
matrix:
11-
os: [ ubuntu-latest ]
12-
php: [ 7.2, 7.3, 7.4, 8.0 ]
13-
laravel: [ 6.*, 7.*, 8.* ]
11+
php: [ 8.0, 8.1 ]
12+
laravel: [ 8.*, 9.* ]
1413
dependency-version: [ prefer-stable ]
1514
include:
1615
- laravel: 6.*
16+
php: 7.2
17+
testbench: 4.*
18+
- laravel: 6.*
19+
php: 8.0
1720
testbench: 4.*
1821
- laravel: 7.*
22+
php: 7.2
23+
testbench: 5.*
24+
- laravel: 7.*
25+
php: 8.0
1926
testbench: 5.*
2027
- laravel: 8.*
28+
php: 7.3
2129
testbench: 6.*
22-
exclude:
2330
- laravel: 8.*
24-
php: 7.2
31+
testbench: 6.*
32+
- laravel: 9.*
33+
testbench: 7.*
2534

2635
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
2736

@@ -53,9 +62,7 @@ jobs:
5362
coverage: pcov
5463

5564
- name: Install dependencies
56-
run: |
57-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
58-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
65+
run: composer update --with="illuminate/framework:${{ matrix.laravel }}" --with="orchestra/testbench:${{ matrix.testbench }}" --prefer-dist --no-interaction --no-progress
5966

6067
- name: Execute tests
6168
run: vendor/bin/phpunit --coverage-clover=coverage.xml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Laravel Unique Translation
22

33
[![GitHub release](https://img.shields.io/github/release/codezero-be/laravel-unique-translation.svg?style=flat-square)](CHANGELOG.md)
4-
[![Laravel](https://img.shields.io/badge/laravel-8-red?style=flat-square&logo=laravel&logoColor=white)](https://laravel.com)
4+
[![Laravel](https://img.shields.io/badge/laravel-9-red?style=flat-square&logo=laravel&logoColor=white)](https://laravel.com)
55
[![License](https://img.shields.io/packagist/l/codezero/laravel-unique-translation.svg?style=flat-square)](LICENSE.md)
66
[![Build Status](https://img.shields.io/github/workflow/status/codezero-be/laravel-unique-translation/Tests/master?style=flat-square&logo=github&logoColor=white&label=tests)](https://github.com/codezero-be/laravel-unique-translation/actions)
77
[![Code Coverage](https://img.shields.io/codacy/coverage/bb5f876fb1a94aa0a426fd31a2656e5b/master?style=flat-square)](https://app.codacy.com/gh/codezero-be/laravel-unique-translation)
@@ -27,7 +27,7 @@ This package also supports [`spatie/nova-translatable`](https://github.com/spati
2727
- PHP ^7.2 or PHP ^8.0
2828
- MySQL >= 5.6
2929
- [Laravel](https://laravel.com/) >= 6 (use v1.* for Laravel 5.*)
30-
- [spatie/laravel-translatable](https://github.com/spatie/laravel-translatable) ^4.4
30+
- [spatie/laravel-translatable](https://github.com/spatie/laravel-translatable) ^4.4|^5.0
3131
- [spatie/nova-translatable](https://github.com/spatie/nova-translatable/) ^3.0
3232

3333
## 📦 Installation

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^7.2||^8.0"
25+
"php": "^7.2|^8.0"
2626
},
2727
"require-dev": {
28-
"orchestra/testbench": "^4.0|^5.0|^6.0",
28+
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0",
2929
"phpunit/phpunit": "^8.0|^9.0",
30-
"spatie/laravel-translatable": "^4.4"
30+
"spatie/laravel-translatable": "^4.4|^5.0"
3131
},
3232
"autoload": {
3333
"psr-4": {

0 commit comments

Comments
 (0)