Skip to content

Update src/admin/SparxstarUECAdmin.php #10

Update src/admin/SparxstarUECAdmin.php

Update src/admin/SparxstarUECAdmin.php #10

Workflow file for this run

name: CI
on:
push:
pull_request:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@20529878ed81ef8e78ddf08b480401e6101a850f
with:
php-version: "8.2"
- name: Cache Composer packages
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ hashFiles('**/composer.lock') }}
restore-keys: composer-
- name: Install PHP dependencies
run: composer install --no-interaction
- name: Cache NPM packages
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: npm-
- name: Install JS dependencies
run: npm ci
- name: Run all linting with autofix
run: |
npm run format
./vendor/bin/phpcbf || true
- name: Check bundle sizes
run: npm run size-check
- name: Validate STAR/AIWA compliance
run: |
npm run i18n-check
grep -q "WordPress.*6\.4" starmus-audio-recorder.php || echo "⚠️ WordPress 6.4+ requirement not found"
grep -q "star-" src/ || echo "⚠️ STAR prefix not found in source"
- name: Run static analysis
run: |
npm run lint:js
npm run lint:css
composer analyze
composer lint
- name: Commit fixes
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0
with:
commit_message: "style: auto-fix linting issues"
branch: ${{ github.head_ref }}
if: github.event_name == 'push'
- name: Start WordPress test environment
run: npm run env:start
- name: WordPress Integration Tests
run: npm run test:wp
- name: Stop WordPress test environment
run: npm run env:stop
- name: Install Playwright
run: npx playwright install --with-deps chromium
- name: E2E Tests (Offline & Accessibility)
run: |
npm run test:e2e
npm run test:a11y