From b916056fb1016dead239fad0e00f8e6507a7560b Mon Sep 17 00:00:00 2001 From: Thoriq Firdaus <2067467+tfirdaus@users.noreply.github.com> Date: Wed, 30 Jul 2025 00:25:26 +0700 Subject: [PATCH 1/2] Update `ci.yml` workflows --- .github/workflows/ci.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fb06d8..20feca6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: @@ -67,7 +78,7 @@ jobs: 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] @@ -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 From 50f2be1078a8587c9a2248f771a17e9a3a6344a9 Mon Sep 17 00:00:00 2001 From: Thoriq Firdaus <2067467+tfirdaus@users.noreply.github.com> Date: Wed, 30 Jul 2025 00:25:51 +0700 Subject: [PATCH 2/2] Update ci.yml workflows --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20feca6..c550a67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,7 +70,7 @@ jobs: run: composer analyze test: - needs: [lint, analyze] + needs: [typo, lint, analyze] runs-on: ubuntu-latest name: Test