Skip to content

Merge pull request #9 from lazytanuki/restart_bot #36

Merge pull request #9 from lazytanuki/restart_bot

Merge pull request #9 from lazytanuki/restart_bot #36

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
# Build/Test/Check everything Rust
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build
- name: Test
run: cargo test
- name: Format
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy -- -D warnings