Skip to content

Commit

Permalink
Merge pull request #181 from nomic-io/ci-wasm-rest-check
Browse files Browse the repository at this point in the history
Ci wasm rest check
  • Loading branch information
cwlittle authored Aug 8, 2023
2 parents ec6e85e + e1ead7a commit 5d31d19
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 8 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose
args: --verbose --no-default-features --features=full,feat-ibc,testnet

test-all-features:
runs-on: ubuntu-latest
Expand All @@ -65,6 +65,38 @@ jobs:
command: test
args: --verbose --all-features

check-rest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-05-08
override: true
- name: Check Rest
uses: actions-rs/cargo@v1
with:
command: check
args: --manifest-path rest/Cargo.toml --verbose

build-wasm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-05-08
override: true
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build Wasm
working-directory: ./wasm
run: wasm-pack -v build --target web

coverage:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -96,7 +128,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: llvm-cov
args: --all-features --workspace --lcov --output-path lcov.info
args: --no-default-features --features=full,feat-ibc,testnet,emergency-disbursal --workspace --lcov --output-path lcov.info
- name: Upload to codecov.io
uses: codecov/codecov-action@v1
with:
Expand Down Expand Up @@ -145,4 +177,4 @@ jobs:
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings
args: --no-default-features --features=full,feat-ibc,testnet,emergency-disbursal -- -D warnings
10 changes: 5 additions & 5 deletions rest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ edition = "2021"

[dependencies]
rocket = { version = "0.5.0-rc.1", features = ["json", "tls"] }
nomic = { path = "..", features = ["full"] }
nomic = { path = "..", default-features = false, features = [
"full",
"feat-ibc",
"testnet",
] }
hex = "0.4.3"
tendermint-rpc = { version = "=0.23.7", features = ["http-client"] }
tendermint = "=0.23.7"
Expand All @@ -16,7 +20,3 @@ serde = "1.0.136"
serde_json = "1.0.78"
lazy_static = "1.4.0"
tokio = "1.19.2"




0 comments on commit 5d31d19

Please sign in to comment.