-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (79 loc) · 2.51 KB
/
Copy pathe2e-sites.yml
File metadata and controls
93 lines (79 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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
max-parallel: 3
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"