name: WordPress Tests on: push: branches: [ main, feature/*, bugfix/* ] pull_request: branches: [ main ] jobs: code-quality: name: Code Quality Check runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' - name: Install dependencies run: npm ci - name: Verify package.json and package-lock.json run: | echo "Verifying package.json and package-lock.json are in sync" npm ls - name: Lint JavaScript files run: | echo "Linting JavaScript files" # Add your linting command here when you have one # For example: npm run lint # Note: The actual e2e tests are temporarily disabled due to Docker compatibility issues # in GitHub Actions. They should be run locally before submitting PRs. - name: Note about e2e tests run: | echo "Note: e2e tests are temporarily disabled in CI due to Docker compatibility issues." echo "Please run tests locally before submitting PRs using:" echo "npm run setup:single && npm run test:single:headless" echo "npm run setup:multisite && npm run test:multisite:headless"