From 238074f257a1d94510354f3dddee528e3c49f41b Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Thu, 23 Apr 2026 14:59:34 +0000 Subject: [PATCH] ci: temp switch PHPCS to full report, drop dead oneshot workflow --- .github/workflows/ci.yml | 2 +- .github/workflows/phpcbf-oneshot.yml | 63 ---------------------------- 2 files changed, 1 insertion(+), 64 deletions(-) delete mode 100755 .github/workflows/phpcbf-oneshot.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1f00a2..4629ab8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,7 +70,7 @@ jobs: --extensions=php \ --ignore=vendor/*,tests/*,node_modules/* \ --warning-severity=0 \ - --report=summary \ + --report=full \ includes/ prautoblogger.php uninstall.php phpunit: diff --git a/.github/workflows/phpcbf-oneshot.yml b/.github/workflows/phpcbf-oneshot.yml deleted file mode 100755 index da5ec56..0000000 --- a/.github/workflows/phpcbf-oneshot.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: phpcbf-oneshot - -# One-shot workflow: runs phpcbf against the current branch and commits the -# auto-fixes back. Triggered manually via workflow_dispatch. Intended to be -# deleted in a follow-up commit once the fix-up has landed. - -on: - workflow_dispatch: - -permissions: - contents: write - -jobs: - phpcbf: - name: phpcbf autofix + commit - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.ref }} - token: ${{ secrets.GITHUB_TOKEN }} - persist-credentials: true - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.1' - coverage: none - tools: composer:v2, phpcbf, phpcs - - name: Install WordPress Coding Standards - run: | - composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true - composer global require --no-interaction \ - "dealerdirect/phpcodesniffer-composer-installer:^1.0" \ - "wp-coding-standards/wpcs:^3.0" \ - "phpcsstandards/phpcsutils:^1.0" \ - "phpcsstandards/phpcsextra:^1.0" - - name: Run phpcbf - run: | - # phpcbf exits 1 when fixes applied, 2 when unfixable, 0 when clean. - # Do not let a non-zero exit abort the workflow. - phpcbf --standard=phpcs.xml \ - --extensions=php \ - --ignore=vendor/*,tests/*,node_modules/* \ - includes/ prautoblogger.php uninstall.php || true - - name: Verify phpcs clean after autofix - run: | - phpcs --standard=phpcs.xml \ - --extensions=php \ - --ignore=vendor/*,tests/*,node_modules/* \ - --warning-severity=0 \ - --report=summary \ - includes/ prautoblogger.php uninstall.php - - name: Commit and push fixes - run: | - git config user.name "peptiderepo" - git config user.email "peptiderepo@users.noreply.github.com" - if git diff --quiet; then - echo "No changes to commit." - exit 0 - fi - git add -A - git commit -m "Opik Wave 1: phpcbf autofix (WPCS)" - git push origin HEAD:${GITHUB_REF_NAME}