Add cargo-audit step to check for dependecy security issues
This commit is contained in:
Родитель
29e7ef5ef3
Коммит
c7ffc5b44d
|
@ -13,15 +13,9 @@ orbs:
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
docker:
|
docker:
|
||||||
- image: mozilla/cidockerbases:rust-2019-01-09
|
- image: mozilla/cidockerbases:rust-2019-04-10
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
|
||||||
name: Rustfmt
|
|
||||||
command: cargo fmt -- --check
|
|
||||||
- run:
|
|
||||||
name: Clippy
|
|
||||||
command: cargo clippy --all-targets --all-features
|
|
||||||
- run:
|
- run:
|
||||||
name: Build
|
name: Build
|
||||||
command: cargo build --release
|
command: cargo build --release
|
||||||
|
@ -35,6 +29,22 @@ jobs:
|
||||||
file: target/cov/
|
file: target/cov/
|
||||||
flags: flags cargo_kcov
|
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:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- image: mozilla/cidockerbases:docker-2019-01-09
|
- image: mozilla/cidockerbases:docker-2019-01-09
|
||||||
|
@ -97,9 +107,20 @@ workflows:
|
||||||
test:
|
test:
|
||||||
jobs:
|
jobs:
|
||||||
- test
|
- test
|
||||||
|
- lint
|
||||||
|
|
||||||
build-publish:
|
build-publish:
|
||||||
jobs:
|
jobs:
|
||||||
|
- test:
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /.*/
|
||||||
|
|
||||||
|
- lint:
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /.*/
|
||||||
|
|
||||||
- build:
|
- build:
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
|
@ -107,6 +128,8 @@ workflows:
|
||||||
|
|
||||||
- publish:
|
- publish:
|
||||||
requires:
|
requires:
|
||||||
|
- test
|
||||||
|
- lint
|
||||||
- build
|
- build
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче