Skip to content

gravity_proto/v0.4.4 #16

gravity_proto/v0.4.4

gravity_proto/v0.4.4 #16

Workflow file for this run

name: Rust tests
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Check rust code
run: cargo check --all
test:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Test rust code
run: cargo test --verbose --all
rustfmt:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check code formatting
run: rustup component add rustfmt && cargo fmt --all -- --check
audit:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Run Cargo Audit
run: cargo install cargo-audit && cargo audit