Skip to content

ci: run motoko root canister tests on ci #175

ci: run motoko root canister tests on ci

ci: run motoko root canister tests on ci #175

Workflow file for this run

name: 'Code tests'
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
- labeled
merge_group:
types: [checks_requested]
branches:
- main
env:
# When getting Rust dependencies, retry on network error:
CARGO_NET_RETRY: 10
# Use the local .curlrc
CURL_HOME: .
jobs:
rust_test:
name: 'rust-tests:required'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: 'Test cargo crates'
run: cargo test
motoko_tests:
name: 'motoko-tests:required'
runs-on: ubuntu-latest
steps:
- name: 'Checkout code'
uses: actions/checkout@v4
- name: Setup DFX
uses: dfinity/setup-dfx@main
with:
dfx-version: 'auto'
- name: 'Start DFX'
run: dfx start --background
- name: 'Test cns_root canister'
run: |
dfx deploy --no-wallet cns_root_test
dfx canister call cns_root_test runTests "()"
- name: 'Stop DFX'
run: dfx stop