build(deps): bump ic-cdk from 0.10.0 to 0.10.1 #924
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
paths-ignore: | |
- "README.md" | |
jobs: | |
cargo-clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
- run: rustup component add clippy | |
- name: Cargo clippy | |
# We run clippy twice (once without tests), so that it accurately reports dead code in the non-test configuration. | |
# `manual_range_contains` is disabled because a >= x && a < y reads more clearly than (x..y).contains(a) and | |
# there are additional caveats for floating point numbers (https://github.com/rust-lang/rust-clippy/issues/6455) | |
run: | | |
cargo clippy -- -D clippy::all -D warnings -A clippy::manual_range_contains | |
cargo clippy --tests --benches -- -D clippy::all -D warnings -A clippy::manual_range_contains | |
cargo-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
- name: Cargo test | |
run: unset CI && cargo test | |
e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install dfx | |
uses: dfinity/setup-dfx@main | |
- name: Start dfx | |
run: dfx start --background | |
- name: Install npm packages | |
run: npm ci | |
- name: Run E2E tests | |
run: scripts/e2e | |
- name: Run examples | |
run: scripts/examples | |
- name: Check formatting | |
run: cargo fmt --all -- --check |