aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/rust.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/rust.yaml')
-rw-r--r--.github/workflows/rust.yaml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml
new file mode 100644
index 0000000..ee0218a
--- /dev/null
+++ b/.github/workflows/rust.yaml
@@ -0,0 +1,34 @@
+name: Rust ✅
+
+on:
+ push:
+ paths:
+ - "crates/**"
+ pull_request:
+ paths:
+ - "crates/**"
+
+env:
+ CARGO_TERM_COLOR: always
+
+jobs:
+ check:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout 🛒
+ uses: actions/checkout@v2
+
+ - name: Toolchain 🧰
+ uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: nightly-2021-12-04
+ components: rustfmt, clippy
+ override: true
+
+ - name: Check ✅
+ uses: actions-rs/cargo@v1
+ continue-on-error: false
+ with:
+ command: check
+ args: --verbose