Skip to content

Commit be74f4e

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

17 files changed

Lines changed: 7297 additions & 15 deletions

File tree

.github/workflows/web.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
sudo apt update && apt install curl firefox-esr -y
15+
# curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
16+
# cargo binstall just
17+
# cargo binstall wasm-pack
18+
# cargo binstall
19+
# curl -L https://github.com/mozilla/geckodriver/releases/download/v0.35.0/geckodriver-v0.35.0-linux64.tar.gz -o geckodriver.tar.gz
20+
# tar -xvzf geckodriver.tar.gz
21+
# mv geckodriver /usr/local/bin
22+
# 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)