1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-07 16:15:32 +02:00

simplify ci pipe

This commit is contained in:
Jan Lukas Gernert 2022-10-07 09:33:55 +02:00
parent 7b205e8e27
commit 29df3aa698

View file

@ -1,9 +1,9 @@
image: rust:latest
stages:
- build
- fmt
- lint
- build
run-build:
stage: build
@ -12,20 +12,13 @@ run-build:
- rustc --version && cargo --version
- cargo build --release --jobs 1
run-fmt:
stage: fmt
image: rust:latest
before_script:
- rustup component add rustfmt
script:
- rustc --version && cargo --version
- cargo fmt -- --check
run-lint:
stage: lint
image: rust:latest
before_script:
- rustup component add rustfmt
- rustup component add clippy
script:
- rustc --version && cargo --version
- cargo fmt -- --check
- cargo clippy --all-targets --all-features -- -D warnings