Skip to content

Commit

Permalink
Merge pull request #2 from diglabby/alies/dependencies-1
Browse files Browse the repository at this point in the history
Support Laravel 9
  • Loading branch information
alies-dev authored Feb 27, 2024
2 parents f854515 + 7a4a3f9 commit 93b1538
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 17 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,50 @@ name: run-tests
on:
push:
schedule:
- cron: '0 0 * * *'
- cron: '0 0 */5 * *'

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
php: [7.4, 7.3, 7.2]
laravel: [7.*, 6.*, 5.8.*]
php: [8.3, 8.0, 7.4]
laravel: [9.*, 8.*, 7.*, 6.*, 5.8.*]
dependency-version: [prefer-lowest]
os: [ubuntu-latest]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
- laravel: 7.*
testbench: 5.*
- laravel: 6.*
testbench: 4.*
- laravel: 5.8.*
testbench: 3.8.*
exclude:
- php: 7.4
laravel: 9.*
- php: 8.0
laravel: 5.8.*
- php: 8.3
laravel: 5.8.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v1
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
{
"name": "diglabby/laravel-find-missing-translations",
"description": "A console command to find missing translations for Laravel projects",
"type": "library",
"license": "MIT",
"type": "library",
"keywords": [
"diglabby",
"laravel",
"translation"
],
"require": {
"php": "^7.1.3|^8.0",
"illuminate/console": "^5.8|^6.0|^7.0",
"illuminate/support": "^5.8|^6.0|^7.0"
"php": "^7.1.3 || ^8.0",
"illuminate/console": "^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/support": "^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
},
"require-dev": {
"orchestra/testbench": "^3.8|^4.0|^5.0",
"phpunit/phpunit": "^7.5|^8.5|^9.2"
"orchestra/testbench": "^3.8 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.6"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Diglabby\\FindMissingTranslations\\": "src"
Expand All @@ -27,9 +29,6 @@
"Diglabby\\FindMissingTranslations\\Tests\\": "tests"
}
},
"scripts": {
"test": "vendor/bin/phpunit"
},
"config": {
"sort-packages": true
},
Expand All @@ -40,6 +39,7 @@
]
}
},
"minimum-stability": "dev",
"prefer-stable": true
"scripts": {
"test": "vendor/bin/phpunit"
}
}

0 comments on commit 93b1538

Please sign in to comment.