From 0e430d5793a34b8bb4b25834bf63d5156fe88f40 Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Fri, 29 Dec 2023 00:48:46 -0500 Subject: [PATCH] Add build and test CI jobs --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..25a9fb8 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,17 @@ +stages: + - build + - test + +# Build the project +build: + stage: build + image: registry.mregirouard.com/libretunes/ops/docker-leptos:slim + script: + - cargo-leptos build + +# Run unit tests +test: + stage: test + image: registry.mregirouard.com/libretunes/ops/docker-leptos:slim + script: + - cargo-leptos test