diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index d03b1ac..8ed5981 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,22 +45,21 @@ 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: 13.* + php-version: 8.2 steps: - name: Set up PHP @@ -88,10 +89,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 @@ -111,10 +115,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 b359119..e003df7 100644 --- a/composer.json +++ b/composer.json @@ -24,17 +24,17 @@ "php": "^8.2", "ext-json": "*", "symfony/finder": "7.*", - "illuminate/config": "11.*|12.*", - "illuminate/console": "11.*|12.*", - "illuminate/contracts": "11.*|12.*", - "illuminate/events": "11.*|12.*", - "illuminate/http": "11.*|12.*", - "illuminate/pipeline": "11.*|12.*", - "illuminate/queue": "11.*|12.*", - "illuminate/support": "11.*|12.*" + "illuminate/config": "11.*|12.*|^13.0", + "illuminate/console": "11.*|12.*|^13.0", + "illuminate/contracts": "11.*|12.*|^13.0", + "illuminate/events": "11.*|12.*|^13.0", + "illuminate/http": "11.*|12.*|^13.0", + "illuminate/pipeline": "11.*|12.*|^13.0", + "illuminate/queue": "11.*|12.*|^13.0", + "illuminate/support": "11.*|12.*|^13.0" }, "require-dev": { - "orchestra/testbench": "9.*|10.*" + "orchestra/testbench": "9.*|10.*|^11.0" }, "autoload": { "psr-4": {