mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-27 19:51:34 +00:00
Add CI example for GitHub Actions (#2044)
* Add CI example for GitHub Actions * Don't rely on other GitHub actions
This commit is contained in:
@ -53,3 +53,22 @@ test_script:
|
||||
- set GECKODRIVER=C:\Tools\WebDriver\geckodriver.exe
|
||||
- cargo test --target wasm32-unknown-unknown
|
||||
```
|
||||
|
||||
## GitHub Actions
|
||||
|
||||
```yaml
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
|
||||
- run: cargo test
|
||||
- run: wasm-pack test --headless --chrome
|
||||
- run: wasm-pack test --headless --firefox
|
||||
```
|
||||
|
Reference in New Issue
Block a user