Skip to content
Snippets Groups Projects
Verified Commit 5d480da8 authored by Louis's avatar Louis :fire:
Browse files

Add Cachine & JUnit reporting to CI

parent 2eaa8ae9
No related branches found
No related tags found
No related merge requests found
image: rust:1.82-alpine image: rust:1.82-alpine
stages: stages:
- test - test
cache: &global_cache
key: ${CI_COMMIT_REF_SLUG}
paths:
- .cargo/bin
- .cargo/registry/index
- .cargo/registry/cache
- target/debug/deps
- target/debug/build
policy: pull-push
variables:
CARGO_HOME: ${CI_PROJECT_DIR}/.cargo
lint: lint:
stage: test stage: test
script: script:
- cargo fmt --all --check - cargo fmt --all --check
- cargo clippy --offline --frozen --locked -- -D warnings - cargo clippy --offline --frozen --locked -- -D warnings
cache:
<<: *global_cache
policy: pull
test: test:
stage: test stage: test
script: script:
- cargo test - cargo install junitify
- cargo test -- --format=json -Z unstable-options --report-time | junitify --out $CI_PROJECT_DIR/tests/
artifacts:
when: always
reports:
junit: $CI_PROJECT_DIR/tests/*.xml
package: package:
stage: test stage: test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment