Add cargo-audit step to check for dependecy security issues
This commit is contained in:
Родитель
29e7ef5ef3
Коммит
c7ffc5b44d
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче