Skip to content

ci: run motoko root canister tests on ci #173

ci: run motoko root canister tests on ci

ci: run motoko root canister tests on ci #173

Workflow file for this run

name: 'Code style'
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:
name: 'consistent-style:required'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: 'Format code'
run: cargo fmt --all -- --check
env:
RUST_BACKTRACE: 1
- name: 'Lint code'
run: cargo clippy --verbose --tests --benches --workspace -- -D clippy::all
env:
RUST_BACKTRACE: 1
motoko_code_style:
name: 'motoko-code-style:required'
runs-on: ubuntu-latest
steps:
- name: 'Checkout code'
uses: actions/checkout@v4
- name: Setup PNPM
uses: dfinity/ci-tools/actions/setup-pnpm@main
- name: 'Check code formatting'
run: pnpm format:check