diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5985a09..f4957f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,12 +3,12 @@ name: CI on: push: branches: - - '*' + - * tags: - - '*' + - * pull_request: branches: - - '*' + - * jobs: build: @@ -19,48 +19,47 @@ jobs: strategy: fail-fast: false matrix: - php: - - '8.1' - - '8.2' - laravel: - - 9.* - - 10.* - prefer: - - 'prefer-lowest' - - 'prefer-stable' + php: ['8.1', '8.2'] + laravel: ['9.*', '10.*', '11.*'] + prefer: [prefer-lowest, prefer-stable] include: - - laravel: '9.*' - testbench: '7.*' - - laravel: '10.*' - testbench: '8.*' + - laravel: 9.* + testbench: 7.* + - laravel: 10.* + testbench: 8.* + - laravel: 11.* + testbench: 9.* + exclude: + - laravel: 11.* + php: '8.1' name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} --${{ matrix.prefer }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv - coverage: pcov + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv + coverage: pcov - - uses: actions/cache@v3.0.5 - name: Cache dependencies - with: - path: ~/.composer/cache/files - key: composer-php-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.prefer }}-${{ hashFiles('composer.json') }} + - uses: actions/cache@v3.0.5 + name: Cache dependencies + with: + path: ~/.composer/cache/files + key: composer-php-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.prefer }}-${{ hashFiles('composer.json') }} - - name: Install dependencies - run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update - composer update --${{ matrix.prefer }} --prefer-dist --no-interaction --no-suggest + - name: Install dependencies + run: | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer update --${{ matrix.prefer }} --prefer-dist --no-interaction --no-suggest - - name: Run tests - run: | - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml + - name: Run tests + run: | + vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml - - uses: codecov/codecov-action@v3.1.0 - with: - fail_ci_if_error: false + - uses: codecov/codecov-action@v3.1.0 + with: + fail_ci_if_error: false diff --git a/composer.json b/composer.json index 6326ae0..91ea9ae 100644 --- a/composer.json +++ b/composer.json @@ -20,8 +20,8 @@ } ], "require": { - "illuminate/http": "^9.35|^10.5", - "illuminate/support": "^9.35|^10.5", + "illuminate/http": "^9.35|^10.5|^11.0", + "illuminate/support": "^9.35|^10.5|^11.0", "rennokki/laravel-sns-events": "^7.2" }, "autoload": { @@ -39,8 +39,8 @@ }, "require-dev": { "mockery/mockery": "^1.5", - "orchestra/testbench": "^7.23|^8.1.1", - "phpunit/phpunit": "^9.5.25" + "orchestra/testbench": "^7.23|^8.1.1|^9.0", + "phpunit/phpunit": "^9.5.25|^10.5" }, "config": { "sort-packages": true