fix(cdp,mcp): stabilize page linting noise #202
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: e2e-sites | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: e2e-sites-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: -Dwarnings | |
| RUST_BACKTRACE: 1 | |
| permissions: | |
| contents: read | |
| jobs: | |
| matrix: | |
| name: ${{ matrix.framework }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 25 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| framework: | |
| - html-css | |
| - tailwind-html | |
| - react-vite | |
| - vue | |
| - angular | |
| - nextjs | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: e2e-sites | |
| - uses: extractions/setup-just@v4 | |
| - name: Set up Node 20 | |
| if: matrix.framework != 'html-css' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: e2e-sites/${{ matrix.framework }}/package-lock.json | |
| - name: Prepare Chrome sandbox (Linux) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: sudo bash scripts/ci-chrome-sandbox.sh | |
| - name: Install Chrome | |
| id: setup-chrome | |
| uses: browser-actions/setup-chrome@v2 | |
| with: | |
| chrome-version: stable | |
| install-dependencies: true | |
| - name: Build the fixture | |
| working-directory: e2e-sites/${{ matrix.framework }} | |
| shell: bash | |
| run: just build | |
| - name: Build plumb (release) | |
| run: cargo build --release -p plumb-cli | |
| - name: Run the e2e harness for ${{ matrix.framework }} | |
| env: | |
| CHROME_PATH: ${{ steps.setup-chrome.outputs.chrome-path }} | |
| # Next.js leg is advisory until upstream chromiumoxide handles | |
| # the WebSocket "Invalid message" warnings that fire during | |
| # Next.js's hydration phase on Linux + Windows Chromium. macOS | |
| # is stable. Static-export refactor (#235) didn't resolve this | |
| # — the WS bug fires before any wait_for selector polls. | |
| # Tracking via re-opened #233. | |
| continue-on-error: ${{ matrix.framework == 'nextjs' }} | |
| shell: bash | |
| run: | | |
| cargo run --release -p plumb-e2e -- \ | |
| --site "${{ matrix.framework }}" \ | |
| --no-build \ | |
| --plumb-bin target/release/plumb \ | |
| --chrome-path "$CHROME_PATH" |