diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 3328b3f..d5d7915 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -1,5 +1,3 @@ -# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json - name: Tests on: @@ -7,10 +5,11 @@ on: pull_request: jobs: - byte_level: name: 0️⃣ Byte-level + runs-on: ubuntu-latest + steps: - name: Checkout code uses: actions/checkout@v4 @@ -18,13 +17,16 @@ jobs: - name: Check file permissions run: | test $(find . -type f -not -path './.git/*' -executable) == + - name: Find non-printable ASCII characters run: | ! LC_ALL=C.UTF-8 find ./src -type f -name *.php -print0 | xargs -0 -- grep -PHn [^ -~] syntax_errors: name: 1️⃣ Syntax errors + runs-on: ubuntu-latest + steps: - name: Set up PHP uses: shivammathur/setup-php@v2 @@ -43,25 +45,24 @@ jobs: unit_tests: name: 2️⃣ Unit and Feature tests + needs: - byte_level - syntax_errors + runs-on: ubuntu-latest + strategy: matrix: - php-version: - - 8.2 - - 8.3 - - 8.4 - laravel-constraint: - - 11.* - - 12.* - dependencies: - - lowest - - highest + php-version: [8.2, 8.3, 8.4] + laravel-constraint: ['11.*', '12.*', '13.*'] + dependencies: [lowest, highest] exclude: - laravel-constraint: 12.* php-version: 8.2 + - laravel-constraint: 13.* + php-version: 8.2 + steps: - name: Set up PHP uses: shivammathur/setup-php@v2 @@ -89,10 +90,13 @@ jobs: static_analysis: name: 3️⃣ Static Analysis + needs: - byte_level - syntax_errors + runs-on: ubuntu-latest + steps: - name: Set up PHP uses: shivammathur/setup-php@v2 @@ -112,10 +116,13 @@ jobs: exported_files: name: 4️⃣ Exported files + needs: - byte_level - syntax_errors + runs-on: ubuntu-latest + steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/composer.json b/composer.json index e6f114e..708a597 100644 --- a/composer.json +++ b/composer.json @@ -18,15 +18,15 @@ }, "require": { "php": "^8.2", - "illuminate/cache": "11.*|12.*", - "illuminate/config": "11.*|12.*", - "illuminate/database": "11.*|12.*", - "illuminate/support": "11.*|12.*", - "illuminate/container": "11.*|12.*", - "illuminate/contracts": "11.*|12.*" + "illuminate/cache": "11.*|12.*|^13.0", + "illuminate/config": "11.*|12.*|^13.0", + "illuminate/database": "11.*|12.*|^13.0", + "illuminate/support": "11.*|12.*|^13.0", + "illuminate/container": "11.*|12.*|^13.0", + "illuminate/contracts": "11.*|12.*|^13.0" }, "require-dev": { - "orchestra/testbench": "9.*|10.*" + "orchestra/testbench": "9.*|10.*|^11.0" }, "autoload": { "psr-4": {