diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 4554c07..d743eac 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,24 +1,31 @@ name: 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, 8.3 ] - laravel: [ 10.*, 11.* ] - dependency-version: [ prefer-stable ] + php: [8.1, 8.2, 8.3] + laravel: ['10.*', '11.*', '12.*'] + dependency-version: [prefer-stable] exclude: - laravel: 11.* php: 8.1 + - laravel: 12.* + php: 8.1 include: - laravel: 10.* testbench: 8.* - laravel: 11.* testbench: 9.* + - laravel: 12.* + testbench: 10.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} @@ -45,9 +52,9 @@ jobs: - name: Execute tests run: vendor/bin/phpunit --coverage-clover=coverage.xml - - if: github.event_name == 'push' + - if: "github.event_name == 'push'" name: Run Codacy Coverage Reporter uses: codacy/codacy-coverage-reporter-action@master with: - project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} - coverage-reports: coverage.xml + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + coverage-reports: coverage.xml diff --git a/composer.json b/composer.json index 6444ae8..f085bf4 100644 --- a/composer.json +++ b/composer.json @@ -23,12 +23,12 @@ "require": { "php": "^8.1", "codezero/browser-locale": "^3.0", - "illuminate/support": "^10.0|^11.0" + "illuminate/support": "^10.0|^11.0|^12.0" }, "require-dev": { "mockery/mockery": "^1.3.3", - "orchestra/testbench": "^8.0|^9.0", - "phpunit/phpunit": "^10.5" + "orchestra/testbench": "^8.0|^9.0|^10.0", + "phpunit/phpunit": "^10.5|^11.5.3" }, "scripts": { "test": "phpunit"