Skip to content

Commit 8f14ccc

Browse files
Add CI example for GitHub Actions (#2044)
* Add CI example for GitHub Actions * Don't rely on other GitHub actions
1 parent 5acd6a3 commit 8f14ccc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

guide/src/wasm-bindgen-test/continuous-integration.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,22 @@ test_script:
5353
- set GECKODRIVER=C:\Tools\WebDriver\geckodriver.exe
5454
- cargo test --target wasm32-unknown-unknown
5555
```
56+
57+
## GitHub Actions
58+
59+
```yaml
60+
on: [push, pull_request]
61+
62+
jobs:
63+
test:
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v2
67+
68+
- name: Install
69+
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
70+
71+
- run: cargo test
72+
- run: wasm-pack test --headless --chrome
73+
- run: wasm-pack test --headless --firefox
74+
```

0 commit comments

Comments
 (0)