Feature: Add binding connector to the site editor. #395
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: E2E Tests | |
| on: | |
| pull_request: | |
| branches: [trunk] | |
| jobs: | |
| test: | |
| name: Playwright e2e Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: | | |
| npm ci | |
| composer install --prefer-dist --no-progress | |
| - name: Npm build with coverage instrumentation | |
| env: | |
| COVERAGE_ENABLED: true | |
| run: npm run build | |
| - name: Install wp-env | |
| run: npm install -g @wordpress/env | |
| - name: Start wp-env | |
| run: wp-env start | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps | |
| - name: Run e2e tests with coverage | |
| run: npm run test:e2e:coverage | |
| - name: Generate LCOV report from Istanbul coverage | |
| if: always() | |
| run: npm run test:e2e:coverage:report | |
| - name: Upload E2E Coverage to Codecov | |
| if: always() | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage/lcov.info | |
| flags: e2e | |
| slug: WordPress/secure-custom-fields | |
| name: e2e-coverage | |
| - name: Stop wp-env | |
| if: always() | |
| run: wp-env stop |