diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index edc1fd6..8a3ce1a 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,23 @@ 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 @@ -91,10 +91,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 @@ -114,10 +117,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 cc82f41..0785217 100644 --- a/composer.json +++ b/composer.json @@ -35,18 +35,18 @@ "php": "^8.2", "ext-json": "*", "ext-openssl": "*", - "illuminate/auth": "11.*|12.*", - "illuminate/config": "11.*|12.*", - "illuminate/database": "11.*|12.*", - "illuminate/encryption": "11.*|12.*", - "illuminate/http": "11.*|12.*", - "illuminate/session": "11.*|12.*", - "illuminate/support": "11.*|12.*", + "illuminate/auth": "11.*|12.*|^13.0", + "illuminate/config": "11.*|12.*|^13.0", + "illuminate/database": "11.*|12.*|^13.0", + "illuminate/encryption": "11.*|12.*|^13.0", + "illuminate/http": "11.*|12.*|^13.0", + "illuminate/session": "11.*|12.*|^13.0", + "illuminate/support": "11.*|12.*|^13.0", "laragear/meta-model": "2.*" }, "require-dev": { "ext-sodium": "*", - "orchestra/testbench": "^9.16|10.*" + "orchestra/testbench": "^9.16|10.*|^11.0" }, "suggest": { "paragonie/sodium_compat": "To enable EdDSA 25519 keys from authenticators, if `ext-sodium` is unavailable."