about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.circleci/config.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 5e177bb34887..99ed71cfa44d 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,3 +1,36 @@
 version: 2.1
 orbs:
   rust: glotrade/rust@0.1.3
+jobs:
+  build:
+    executor: rust/default
+    steps:
+      - checkout
+      - rust/update_toolchain
+      - rust/build
+  test:
+    executor: rust/default
+    steps:
+      - checkout
+      - rust/update_toolchain
+      - rust/test
+  format:
+    executor: rust/default
+    steps:
+      - checkout
+      - rust/update_toolchain
+      - rust/format
+  lint:
+    executor: rust/default
+    steps:
+      - checkout
+      - rust/update_toolchain
+      - rust/clippy
+workflows:
+  default:
+    jobs:
+      - format
+      - build
+      - test:
+          requires:
+            - build