Skip to content

chore(deps): Split libp2p and add CI test for minimal versions #27

chore(deps): Split libp2p and add CI test for minimal versions

chore(deps): Split libp2p and add CI test for minimal versions #27

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run clippy
run: cargo clippy --all --all-targets -- -D warnings
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run fmt
run: cargo fmt -- --check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys:
cargo-${{ hashFiles('**/Cargo.lock') }}
cargo-
- name: Run tests
run: cargo test --locked
unused-deps:
runs-on: ubuntu-latest
name: unused dependencies
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install cargo-udeps
uses: taiki-e/cache-cargo-install-action@v1
with:
tool: [email protected]
- name: Check for unused dependencies
run: cargo +nightly udeps --all-targets
env:
RUSTFLAGS: -D warnings