aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yml
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:21 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:21 +0100
commit102e166b040030b590df83888a1d1a47d0130f10 (patch)
tree24789dd4d55f17e82364de9e32714335e36b13c4 /.github/workflows/lint.yml
parent6ab78e3c14acfa7b9d29c9f9e36ffed1ab9e7c43 (diff)
chore(ci): add github workflow
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r--.github/workflows/lint.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 0000000..85c8a17
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,24 @@
+on: [push, pull_request]
+
+name: rustfmt and clippy
+
+jobs:
+ clippy:
+ name: Clippy
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: nightly
+ override: true
+ components: rustfmt, clippy
+ - uses: actions-rs/cargo@v1
+ with:
+ command: fmt
+ args: --all -- --check
+ - uses: actions-rs/cargo@v1
+ with:
+ command: clippy
+ args: -- -D warnings \ No newline at end of file