-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rpc): Implement WASM Client (#210)
- Loading branch information
1 parent
a20665f
commit 163cefb
Showing
8 changed files
with
246 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
|
@@ -130,6 +129,20 @@ jobs: | |
version: "23.3" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
|
||
- name: Install wasm-pack | ||
uses: taiki-e/cache-cargo-install-action@v1 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: Install chromedriver # we don't specify chrome version to match whatever's installed | ||
uses: nanasess/setup-chromedriver@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
|
@@ -152,6 +165,11 @@ jobs: | |
"cache-from": ["type=gha,scope=bridge-0"], | ||
"cache-to": ["type=gha,mode=max,scope=bridge-0"], | ||
"output": ["type=docker"] | ||
}, | ||
"bridge-1": { | ||
"cache-from": ["type=gha,scope=bridge-1"], | ||
"cache-to": ["type=gha,mode=max,scope=bridge-1"], | ||
"output": ["type=docker"] | ||
} | ||
} | ||
} | ||
|
@@ -172,6 +190,10 @@ jobs: | |
- name: Run tests | ||
run: cargo test | ||
|
||
- name: Run rpc wasm test | ||
run: wasm-pack test --headless --chrome rpc --features=wasm-bindgen | ||
|
||
|
||
|
||
unused-deps: | ||
runs-on: ubuntu-latest | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.