summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMax Verevkin <maxxverrr@gmail.com>2022-04-01 21:57:05 +0300
committerMax Verevkin <maxxverrr@gmail.com>2022-04-01 22:00:41 +0300
commit0ea97c16dfdf3e24a41df7c7aeb0ff955469242e (patch)
tree8522a7a40b1b9eaa858faca59c53dbf3d8139085 /.github/workflows
parent77f69b25ba5f4829e0c6fef692c94a38cc388abe (diff)
downloadi3bar-mango-0ea97c16dfdf3e24a41df7c7aeb0ff955469242e.tar.gz
CI
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/rust.yml64
1 files changed, 64 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
new file mode 100644
index 0000000..9d2d713
--- /dev/null
+++ b/.github/workflows/rust.yml
@@ -0,0 +1,64 @@
+on: [push, pull_request]
+
+name: Rust
+
+jobs:
+ check:
+ name: Check
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+ - uses: actions-rs/cargo@v1
+ with:
+ command: check
+
+ test:
+ name: Test Suite
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+ - uses: actions-rs/cargo@v1
+ with:
+ command: test
+
+ fmt:
+ name: Rustfmt
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+ - run: rustup component add rustfmt
+ - uses: actions-rs/cargo@v1
+ with:
+ command: fmt
+ args: --all -- --check
+
+ clippy:
+ name: Clippy
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+ - run: rustup component add clippy
+ - uses: actions-rs/cargo@v1
+ with:
+ command: clippy
+ args: -- -D warnings