Enhancement: reduce maximum image size used as background image based on container width #448
Workflow file for this run
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
| name: End-to-End Tests | |
| on: | |
| push: | |
| branches: | |
| - trunk | |
| - 'release/**' | |
| - 'add/setup-e2e-tests' | |
| paths: | |
| - '.github/workflows/e2e-test.yml' | |
| - 'plugins/auto-sizes/**' | |
| - '**/package.json' | |
| - 'package-lock.json' | |
| - 'composer.json' | |
| - 'composer.lock' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/e2e-test.yml' | |
| - 'plugins/auto-sizes/**' | |
| - '**/package.json' | |
| - 'package-lock.json' | |
| - 'composer.json' | |
| - 'composer.lock' | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| jobs: | |
| e2e-test: | |
| name: E2E Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: Setup Node.js (.nvmrc) | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: npm | |
| - name: Install npm dependencies | |
| run: npm ci | |
| - name: Build assets | |
| run: npm run build | |
| - name: Install Playwright dependencies | |
| run: npx playwright install chromium --with-deps | |
| - name: Install WordPress | |
| run: npm run wp-env start | |
| - name: Run tests | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
| run: npm run test-e2e |