[fractal/clippy-ci] ci: run clippy




commit 5bd9acb185e22bb95562c5a60bec46f9f05ccfb3
Author: Alexandre Franke <afranke gnome org>
Date:   Fri Nov 6 23:41:36 2020 +0100

    ci: run clippy

 .gitlab-ci.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7b6098a1..16650155 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_
 
 stages:
   - check
+  - lint
   - test
   - deploy
 
@@ -32,6 +33,17 @@ check:
         - cargo --version
         - cargo fmt --all -- --check
 
+clippy:
+  image: "rust:slim"
+    stage: "lint"
+    needs:
+      - job: check
+    script:
+      - rustup component add clippy
+      - cargo clippy --version
+      - cargo clippy
+
+
 flatpak:
   extends: '.flatpak'
   image: "$FLATPAK_IMAGE"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]