Skip to content

Commit

Permalink
Add CI example for GitHub Actions (rustwasm#2044)
Browse files Browse the repository at this point in the history
* Add CI example for GitHub Actions

* Don't rely on other GitHub actions
  • Loading branch information
christianfosli authored Mar 17, 2020
1 parent 5acd6a3 commit 8f14ccc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions guide/src/wasm-bindgen-test/continuous-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 8f14ccc

Please sign in to comment.