diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eb5ab2d..db26acc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/composer.json b/composer.json index a767e59..1c00217 100644 --- a/composer.json +++ b/composer.json @@ -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" @@ -27,9 +29,6 @@ "Diglabby\\FindMissingTranslations\\Tests\\": "tests" } }, - "scripts": { - "test": "vendor/bin/phpunit" - }, "config": { "sort-packages": true }, @@ -40,6 +39,7 @@ ] } }, - "minimum-stability": "dev", - "prefer-stable": true + "scripts": { + "test": "vendor/bin/phpunit" + } }