Skip to content

Bump env_logger from 0.10.0 to 0.10.1 (#134) #472

Bump env_logger from 0.10.0 to 0.10.1 (#134)

Bump env_logger from 0.10.0 to 0.10.1 (#134) #472

Workflow file for this run

name: rust-build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
defaults:
run:
working-directory: ./rust
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
$HOME/.cargo/bin/rustup default stable
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Check format
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy
unit_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
$HOME/.cargo/bin/rustup default stable
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run unit tests
run: cargo test
- name: Run Rust coverage
run: |
cargo install cargo-tarpaulin
cargo tarpaulin -v