diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 2ca1b09..b31525d 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,18 +1,23 @@ name: run-tests -on: [push, pull_request] +on: + - push + - pull_request jobs: test: runs-on: ubuntu-latest + strategy: fail-fast: true matrix: - php: [ 8.1, 8.2 ] - laravel: [ 9.*, 10.*, 11.* ] + php: [8.1, 8.2] + laravel: ['9.*', '10.*', '11.*', '12.*'] exclude: - laravel: 11.* php: 8.1 + - laravel: 12.* + php: 8.1 include: - laravel: 9.* testbench: 7.* @@ -20,30 +25,32 @@ jobs: testbench: 8.* - laravel: 11.* testbench: 9.* + - laravel: 12.* + testbench: 10.* name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.composer/cache/files - key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip - coverage: none - - - name: Install dependencies - run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update - composer update --prefer-dist --no-interaction --no-progress - - - name: Execute tests - run: vendor/bin/phpunit + - name: Checkout code + uses: actions/checkout@v3 + + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ~/.composer/cache/files + key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip + coverage: none + + - name: Install dependencies + run: | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer update --prefer-dist --no-interaction --no-progress + + - name: Execute tests + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 2bc8d9c..df359d5 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,13 @@ { "name": "pod-point/laravel-mail-export", "description": "A mailable trait to export mails to a storage disk once being sent", - "keywords": ["laravel", "mail", "storage", "archive", "backup"], + "keywords": [ + "laravel", + "mail", + "storage", + "archive", + "backup" + ], "homepage": "https://github.com/pod-point/laravel-mail-export", "license": "MIT", "authors": [ @@ -12,13 +18,13 @@ ], "require": { "php": "^8.1", - "illuminate/filesystem": "^9.0|^10.0|^11.0", - "illuminate/mail": "^9.0|^10.0|^11.0", - "illuminate/support": "^9.0|^10.0|^11.0", - "nesbot/carbon": "^2.0" + "illuminate/filesystem": "^9.0|^10.0|^11.0|^12.0", + "illuminate/mail": "^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^9.0|^10.0|^11.0|^12.0", + "nesbot/carbon": "^2.0|^3.8.4" }, "require-dev": { - "orchestra/testbench": "^7.0|^8.0|^9.0" + "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0" }, "autoload": { "psr-4": {