Merge branch '7-update-ci-to-run-all-tests' into 'main'

Add CI job for all tests

Closes #7

See merge request libretunes/libretunes!3
This commit is contained in:
Ethan Girouard 2024-02-04 22:20:38 -05:00
commit 9f1fece816

View File

@ -20,13 +20,20 @@ docker-build:
$CI_REGISTRY_IMAGE:latest; fi $CI_REGISTRY_IMAGE:latest; fi
- docker push $CI_REGISTRY_IMAGE --all-tags - docker push $CI_REGISTRY_IMAGE --all-tags
# Run unit tests # Run leptos tests
test: leptos-tests:
needs: ["build"] needs: ["build"]
image: $CI_REGISTRY/libretunes/ops/docker-leptos:latest image: $CI_REGISTRY/libretunes/ops/docker-leptos:latest
script: script:
- cargo-leptos test - cargo-leptos test
# Run all tests
tests:
needs: ["build"]
image: $CI_REGISTRY/libretunes/ops/docker-leptos:latest
script:
- cargo test --all-targets --all-features
# Generate docs # Generate docs
cargo-doc: cargo-doc:
needs: [] needs: []