Skip to content
Merged
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
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ concurrency:
cancel-in-progress: true

jobs:
typo:
runs-on: ubuntu-latest
name: Typo

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

- name: Check spelling
uses: crate-ci/typos@v1.34.0

lint:
runs-on: ubuntu-latest
name: Lint
Expand All @@ -36,7 +47,7 @@ jobs:
- name: Install PHP dependencies
uses: ramsey/composer-install@v3

- name: Analyze source code
- name: Check code style
run: composer lint

analyze:
Expand All @@ -59,15 +70,15 @@ jobs:
run: composer analyze

test:
needs: [lint, analyze]
needs: [typo, lint, analyze]
runs-on: ubuntu-latest
name: Test

strategy:
fail-fast: true
max-parallel: 3
matrix:
php: ["7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
php-version: ["7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
stability: [prefer-lowest, prefer-stable]
machine: [windows-latest, ubuntu-latest]

Expand All @@ -78,7 +89,7 @@ jobs:
- name: Setup PHP for test
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: ${{ matrix.php-version }}

- name: Install PHP dependencies
uses: ramsey/composer-install@v3
Expand Down