summaryrefslogtreecommitdiffstats
path: root/.github/workflows/clippy.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/clippy.yml')
-rw-r--r--.github/workflows/clippy.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml
new file mode 100644
index 0000000..edf92fb
--- /dev/null
+++ b/.github/workflows/clippy.yml
@@ -0,0 +1,21 @@
+on: [push, pull_request]
+
+name: Clippy check
+
+env:
+ RUSTFLAGS: '-D warnings'
+
+jobs:
+ clippy_check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+ components: clippy
+ - uses: actions-rs/clippy-check@v1
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}