Add tactile press feedback to admin buttons #10213
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| # Trigger the workflow on push or pull request, | |
| # but only for the main branch | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [ opened, labeled, synchronize ] | |
| name: E2E Test | |
| jobs: | |
| cypress: | |
| if: contains(github.event.pull_request.labels.*.name, 'run tests') | |
| runs-on: ubuntu-latest | |
| name: Cypress | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| - name: Cache dependencies | |
| id: cache-npm | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.npm | |
| ~/.cache/Cypress | |
| node_modules | |
| key: ${{ runner.os }}-cypress-node-modules-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cypress-node-modules- | |
| - name: Install dependencies | |
| if: steps.cache-npm.outputs.cache-hit != 'true' | |
| run: npm ci --legacy-peer-deps --include=dev | |
| - name: Set up WP environment | |
| run: npm run env start | |
| - name: Test | |
| run: npm run e2e:githubrun |