From c7ffc5b44d7337049a6b8fb506d67b63f517b324 Mon Sep 17 00:00:00 2001 From: Michael Cooper Date: Wed, 10 Apr 2019 16:22:36 -0700 Subject: [PATCH] Add cargo-audit step to check for dependecy security issues --- .circleci/config.yml | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 95b6474..3731eed 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,15 +13,9 @@ orbs: jobs: test: docker: - - image: mozilla/cidockerbases:rust-2019-01-09 + - image: mozilla/cidockerbases:rust-2019-04-10 steps: - checkout - - run: - name: Rustfmt - command: cargo fmt -- --check - - run: - name: Clippy - command: cargo clippy --all-targets --all-features - run: name: Build command: cargo build --release @@ -35,6 +29,22 @@ jobs: file: target/cov/ flags: flags cargo_kcov + lint: + docker: + - image: mozilla/cidockerbases:rust-2019-04-10 + steps: + - checkout + - run: + name: Rustfmt + command: cargo fmt -- --check + - run: + name: Clippy + command: cargo clippy --all-targets --all-features + - run: + name: Package Audit + command: cargo audit + + build: docker: - image: mozilla/cidockerbases:docker-2019-01-09 @@ -97,9 +107,20 @@ workflows: test: jobs: - test + - lint build-publish: jobs: + - test: + filters: + tags: + only: /.*/ + + - lint: + filters: + tags: + only: /.*/ + - build: filters: tags: @@ -107,6 +128,8 @@ workflows: - publish: requires: + - test + - lint - build filters: tags: