use to string() #213
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: | |
push: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
components: rustfmt | |
target: wasm32-unknown-unknown | |
- uses: actions/cache@v4 | |
id: cache | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} | |
- name: Install Deps | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y protobuf-compiler | |
- name: Add Rust Component | |
shell: bash | |
run: | | |
rustup component add rust-src | |
- name: Add Cargo Tooling | |
if: steps.cache.outputs.cache-hit != 'true' | |
shell: bash | |
run: | | |
cargo install --no-default-features cargo-make | |
cargo install --force --locked cargo-contract | |
cargo install cargo-nextest | |
- name: Cargo Build | |
shell: bash | |
run: | | |
cargo make cargo-build | |
- name: Unit Tests | |
shell: bash | |
run: | | |
cargo test | |
- name: Contract Integration Tests | |
shell: bash | |
run: cargo make contract-tests | |
- name: P2p Tests | |
shell: bash | |
run: cargo make p2p-tests | |
- name: Requester Worker Tests | |
shell: bash | |
run: cargo make requester-worker |