From 781d6af8cbb9e5a8a4fb8e8d5e356f79d1ede299 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Thu, 29 Aug 2024 08:42:23 +0000 Subject: [PATCH] add fluentci.toml --- .fluentci/fluentci.toml | 42 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/.fluentci/fluentci.toml b/.fluentci/fluentci.toml index 7cb2493..8757ecb 100644 --- a/.fluentci/fluentci.toml +++ b/.fluentci/fluentci.toml @@ -3,6 +3,42 @@ name = "fluentci-demo-javascript" version = "0.1.0" description = "" license = "MIT" -authors = [ - "Tsiry Sandratraina " -] \ No newline at end of file +authors = ["Tsiry Sandratraina "] + +[[steps]] +name = "Client lint" +command = ["fluentci run --wasm bun run lint"] +working_directory = "src/client" + +[[steps]] +name = "Server lint" +command = ["fluentci run --wasm bun run lint"] +working_directory = "src/server" + +[[steps]] +name = "Client Unit Tests" +command = ["fluentci run --wasm bun run test"] +working_directory = "src/client" +env = ["CI=true", "NODE_ENV=test"] + +[[steps]] +name = "Server Unit Tests" +command = ["fluentci run --wasm bun run test"] +working_directory = "src/server" +env = ["CI=true", "NODE_ENV=test"] + +[[steps]] +name = "End to End Tests" +command = [ + "cd src/client && fluentci run --wasm cypress install", + "cd ../..", + "fluentci run --wasm . e2e", +] + +[[steps]] +name = "End to End Tests (Server)" +command = [ + "fluentci run --wasm postgres start", + "pkgx psql ---host=localhost -d postgres -U `whoami` -c 'CREATE DATABASE test;'", + "fluentci run --wasm . server_e2e", +]