Skip to content

Commit 6440761

Browse files
committed
Add wasm test to github actions
1 parent 3b47bb2 commit 6440761

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,33 @@ jobs:
9191
run: |
9292
export RUSTPYTHONPATH=`pwd`/Lib
9393
cargo run -- -m test -v
94+
95+
wasm:
96+
name: Run wasm selenium tests
97+
runs-on: ubuntu-latest
98+
steps:
99+
- uses: actions/checkout@master
100+
- name: install wasm-pack
101+
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
102+
- name: install geckodriver
103+
run: |
104+
wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux32.tar.gz
105+
mkdir geckodriver
106+
tar -xzf geckodriver-v0.24.0-linux32.tar.gz -C geckodriver
107+
- uses: actions/setup-python@v1
108+
with:
109+
python-version: 3.6
110+
- name: Install pipenv
111+
run: |
112+
python -V
113+
python -m pip install --upgrade pip
114+
python -m pip install pipenv
115+
- run: pipenv install
116+
working-directory: ./wasm/tests
117+
- uses: actions/setup-node@v1
118+
- name: run test
119+
run: |
120+
export PATH=$PATH:`pwd`/../../geckodriver
121+
npm install
122+
npm run test
123+
working-directory: ./wasm/demo

0 commit comments

Comments
 (0)