20 lines
257 B
YAML
20 lines
257 B
YAML
default:
|
|
image: rust:latest
|
|
|
|
stages:
|
|
- test
|
|
|
|
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
|