Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: Tests

on:
push:
pull_request:

jobs:

byte_level:
name: 0️⃣ Byte-level

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- 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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down