Skip to content

fix task

fix task #2

Workflow file for this run

name: CI
on: [push]
jobs:
build:
runs-on: macos-latest
env:
TEST_RPC_URL: ${{secrets.TEST_RPC_URL}}
TEST_MNEMONIC: ${{secrets.TEST_MNEMONIC}}
TEST_CONTRACT_ADDRESS: ${{secrets.TEST_CONTRACT_ADDRESS}}
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-09-19
override: true
components: rustfmt, clippy
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Build
run: |
cd contract-utils
rustc --version
cargo build -vv
- name: Run tests
run: |
cd contract-utils
cargo test -- --nocapture --test-threads 1
cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: cd cli && npm ci
- run: cd cli && npm test