From e42e1c4635953959ed99b87e14c293d82ec5ed1c Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Sun, 8 Sep 2024 01:07:02 +0700 Subject: [PATCH] ci: add php-cs-fixer check (#199) * ci: add php-cs-fixer check * phive install * phive --- .github/workflows/ci.yml | 9 ++++++++- CHANGELOG.md | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9fe6b6..29383d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: intl - tools: flex + tools: flex, phive - name: Validate composer.json and composer.lock run: composer validate --strict @@ -42,6 +42,9 @@ jobs: key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} restore-keys: | ${{ runner.os }}-php- + + - name: phive + run: phive install --trust-gpg-keys E82B2FB314E9906E - name: Install dependencies uses: ramsey/composer-install@v3 @@ -68,6 +71,10 @@ jobs: # - name: Rector # run: vendor/bin/rector process --no-progress-bar --no-diffs --dry-run --no-ansi + - name: Validate php-cs-fixer + run: | + tools/php-cs-fixer check --allow-risky=yes -q + - name: Load fixtures run: make fixtures diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c39496..b79646e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * fix(`SymfonySerializerKeysetPageIdentifierEncoder`): handle more errors * feat: link headers +* ci: add php-cs-fixer check # 0.17.1