Skip to content

Commit 687a770

Browse files
committed
test windows ci
Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com>
1 parent d6f822f commit 687a770

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,42 @@ jobs:
145145
targets: wasm32-unknown-unknown
146146
- run: cd ${{ github.workspace }}/examples/wasm-yew/${{ matrix.example }} && cargo build --target wasm32-unknown-unknown
147147

148+
test_static_export_chrome:
149+
name: Test Static Export with Chrome (Windows)
150+
runs-on: windows-latest
151+
steps:
152+
- uses: actions/checkout@v4
153+
154+
- name: Setup Chrome and chromedriver
155+
id: setup-chrome
156+
uses: browser-actions/setup-chrome@v1
157+
with:
158+
chrome-version: 'latest'
159+
install-chromedriver: true
160+
161+
- uses: dtolnay/rust-toolchain@stable
162+
163+
- name: Run PNG export test with Chrome
164+
run: |
165+
# Use the paths provided by the setup-chrome action outputs
166+
$env:WEBDRIVER_PATH = "${{ steps.setup-chrome.outputs.chromedriver-path }}"
167+
$env:CHROME_PATH = "${{ steps.setup-chrome.outputs.chrome-path }}"
168+
169+
Write-Host "Using WEBDRIVER_PATH: $env:WEBDRIVER_PATH"
170+
Write-Host "Using CHROME_PATH: $env:CHROME_PATH"
171+
172+
# Verify the paths exist
173+
if (-not (Test-Path $env:WEBDRIVER_PATH)) {
174+
Write-Error "Chromedriver not found at: $env:WEBDRIVER_PATH"
175+
exit 1
176+
}
177+
if (-not (Test-Path $env:CHROME_PATH)) {
178+
Write-Error "Chrome not found at: $env:CHROME_PATH"
179+
exit 1
180+
}
181+
182+
cargo test --package plotly_static --features chromedriver,webdriver_download tests::save_png -- --nocapture
183+
148184
build_book:
149185
name: Build Book
150186
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)