burritos/.gitlab-ci.yml
2023-03-15 15:52:07 +01:00

27 lines
378 B
YAML

default:
image: rust:latest
stages:
- test
build-job:
stage: build
script:
- echo "Compiling the code..."
- cargo build
- echo "Compile complete."
unit-test-job:
stage: test
script:
- echo "Running unit tests..."
- cargo test
lint-test-job:
only:
- merge_requests
stage: test
script:
- echo "Linting code..."
- cargo clippy