Skip to content

Commit f87701e

Browse files
committed
feat: Add slint web example and testing suite
1 parent 83ecc54 commit f87701e

17 files changed

Lines changed: 7299 additions & 15 deletions

File tree

.github/workflows/web.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI Web Tests
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
web-tests:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions-rust-lang/setup-rust-toolchain@v1
12+
- name: tests
13+
run: |
14+
#!/bin/bash
15+
sudo apt update
16+
sudo apt install curl firefox -y
17+
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
18+
cargo binstall just
19+
cargo binstall wasm-pack
20+
cargo binstall
21+
curl -L https://github.com/mozilla/geckodriver/releases/download/v0.35.0/geckodriver-v0.35.0-linux64.tar.gz -o geckodriver.tar.gz
22+
tar -xvzf geckodriver.tar.gz
23+
mv geckodriver /usr/local/bin
24+
just test

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ default-members = [
1717
"platforms/web",
1818
"platforms/winit",
1919
]
20+
exclude = [
21+
"examples/slint-web",
22+
]
2023

2124
[workspace.package]
2225
authors = ["The AccessKit contributors"]

examples/slint-web/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
web/pkg
2+
target

0 commit comments

Comments
 (0)