From 2bccd50b7a11dda0ae239ce13efcdac118bfee92 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 24 Jun 2021 15:06:43 -0700 Subject: feat(dos-bot): :star: --- .github/workflows/rust.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/rust.yml (limited to '.github/workflows') diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..c667c43 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,36 @@ +name: Rust ✅ + +on: + push: + paths: + - "src/**" + - "Config.toml" + pull_request: + paths: + - "src/**" + - "Config.toml" + +env: + CARGO_TERM_COLOR: always + +jobs: + check: + runs-on: ubuntu-20.04 + steps: + - name: Checkout 🛒 + uses: actions/checkout@v2 + + - name: Toolchain 🧰 + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly-2021-06-24 + components: rustfmt, clippy + override: true + + - name: Check ✅ + uses: actions-rs/cargo@v1 + continue-on-error: false + with: + command: check + args: --verbose -- cgit v1.2.3