Update .gitlab-ci.yml file

This commit is contained in:
NickBland 2022-04-07 03:36:53 +00:00
parent ee6e255b2e
commit a63207ceb6

30
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,30 @@
image: "rust:latest"
default:
before_script:
- rustc --version
- cargo --version
stages:
- test
test-code:
stage: test
script:
- cargo test
- cargo install cargo-tarpaulin
- cargo tarpaulin --ignore-tests
lint-code:
stage: test
script:
- rustup component add rustfmt
- cargo fmt -- --check
- rustup component add clippy
- cargo clippy -- -D warnings
audit-code:
stage: test
script:
- cargo install cargo-audit
- cargo audit