Bump anyhow from 1.0.86 to 1.0.93 (#96) #216
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: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
env: | |
CR_DENY_VERSION: 0.16.1 | |
RUST_VERSION: 1.79.0 | |
jobs: | |
rust: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout git repository | |
uses: actions/checkout@master | |
- name: Checkout git submodules | |
run: git submodule update --init --depth=1 | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{env.RUST_VERSION}} | |
components: rustfmt, clippy | |
- name: Install cargo-deny | |
run: | | |
mkdir -p ~/bin/ | |
curl -L "https://github.com/EmbarkStudios/cargo-deny/releases/download/${CR_DENY_VERSION}/cargo-deny-${CR_DENY_VERSION}-x86_64-unknown-linux-musl.tar.gz" \ | |
| tar -xz -C ~/bin/ --strip-components=1 "cargo-deny-${CR_DENY_VERSION}-x86_64-unknown-linux-musl/cargo-deny" | |
echo "$HOME/bin" >> "$GITHUB_PATH" | |
- name: Check Rust formatting | |
run: cargo fmt -- --check | |
- name: Remove the Cargo target directory | |
if: github.ref == 'refs/heads/master' | |
run: cargo clean | |
- name: Check dependency licenses | |
run: cargo deny --locked check | |
- name: Run clippy | |
uses: 10XGenomics/clippy-check@main | |
with: | |
args: | | |
--all-targets --locked -- | |
-D clippy::perf | |
-D clippy::style | |
-D clippy::suspicious | |
-A clippy::comparison_chain | |
-W future_incompatible | |
-W nonstandard_style | |
-W rust_2021_compatibility | |
-W unused | |
-D clippy::enum_glob_use | |
-D clippy::redundant_closure_for_method_calls | |
-D clippy::unnecessary_unwrap | |
-D clippy::unused_io_amount | |
-D clippy::wildcard_imports | |
-D clippy::blacklisted_name | |
- name: Run Rust tests | |
run: RUST_BACKTRACE=1 cargo test --locked |