Skip to content

Commit

Permalink
Move JS tests to main workflow (#104)
Browse files Browse the repository at this point in the history
- Move JS tests to the main workflow
  • Loading branch information
minikin committed Nov 28, 2022
2 parents f2be547 + ba3e244 commit d83df07
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 40 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/ci_tests.yml
Expand Up @@ -21,7 +21,7 @@ jobs:
# totalShards: [4]
# env:
# CARGO_FLAGS: --verbose --locked --features systemd gelf
# steps:
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# with:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
# runs-on: ubuntu-latest
# env:
# CARGO_FLAGS: --verbose --locked
# steps:
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# with:
Expand Down Expand Up @@ -83,7 +83,6 @@ jobs:
# --exclude catalyst-toolbox \
# --exclude "chain-*" \


vit_servicing_station:
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -117,7 +116,7 @@ jobs:
runs-on: ubuntu-latest
env:
CARGO_FLAGS: --verbose --locked
steps:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -161,7 +160,7 @@ jobs:
runs-on: ubuntu-latest
env:
CARGO_FLAGS: --verbose --locked
steps:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
Expand All @@ -178,10 +177,35 @@ jobs:
with:
toolchain: "1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
- run: cargo nextest run -p "chain-*"
clippy:

wallet-js-binding:
name: Wallet JS Binding Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
toolchain: stable

- uses: jetli/wasm-pack-action@v0.3.0
with:
version: 'latest'

- name: Build wasm package
run: |
cd src/chain-wallet-libs/bindings/wallet-js
wasm-pack build --release --target=nodejs -d pkg
- name: Run JS tests
run: |
cd src/chain-wallet-libs/bindings/wallet-js/js-test
npm install
npm test
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/js_wallet_tests.yml

This file was deleted.

0 comments on commit d83df07

Please sign in to comment.