From d2f997639f7d0cf642c6ac3028e6e03fb914c43e Mon Sep 17 00:00:00 2001 From: Max batleforc Date: Fri, 23 Aug 2024 02:21:36 +0200 Subject: [PATCH] fix: test with move folder [HOOK FAIL OK] --- cicd/Readme.md | 18 +++++++++++++++++- libs/back/markdown_struct/src/folder_struct.rs | 6 +++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/cicd/Readme.md b/cicd/Readme.md index 76e7f26..a3d5c4e 100644 --- a/cicd/Readme.md +++ b/cicd/Readme.md @@ -3,7 +3,7 @@ ## Goal - Create a "beta" version of the Monofolio website that is automatically deployed and is a ref to the `main` branch of the repository. -- Create a "production" version of the Monofolio website that is automatically deployed and is a ref to a `tag` in the repository. +- Create a "production" version of the Monofolio website that is automatically deployed and is a ref to a `tag` in the repository. And Link to a Release Note with Changelog. - Make sure that the "production" version is tested in depth ### Deploy flow @@ -14,6 +14,7 @@ - Build the Backend if the folder related to the Backend has changed. - apps/back - libs/back/* + - folio_content - Push the images to a conteneur registry. - Deploy the images to a Kubernetes cluster. @@ -53,3 +54,18 @@ flowchart TD; end ``` + +## Tasks + +- [ ] Update Github with pipeline status +- [ ] Generate a Software Bill of Materials (SBOM) +- [ ] Analyze the SBOM for vulnerabilities +- [ ] Send a notification to discord + - When a PR pass the test flow + - When a PR is merged + - When a new version is deployed (beta or production) + - When a vulnerability is found (don't know if it's possible to send the vulnerability from github to discord) +- [ ] Create a Helm chart for the backend/frontend +- [ ] Build the Frontend/Backend +- [ ] Check if the Frontend/Backend helm chart is Okay +- [ ] Check secret \ No newline at end of file diff --git a/libs/back/markdown_struct/src/folder_struct.rs b/libs/back/markdown_struct/src/folder_struct.rs index b0d32d1..8b15a49 100644 --- a/libs/back/markdown_struct/src/folder_struct.rs +++ b/libs/back/markdown_struct/src/folder_struct.rs @@ -69,12 +69,12 @@ mod tests { use std::{fs, path::PathBuf}; use super::*; - const TEST_FOLDER: &str = "../../test_dataset/content"; + const TEST_FOLDER: &str = "../../../test_dataset/content"; #[test] fn test_process_folder_struct_base_folder_is_a_file() { let mut ressources_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")); - ressources_dir.push("../../test_dataset/content/index.md"); + ressources_dir.push("../../../test_dataset/content/index.md"); let folder = process_folder_struct(ressources_dir.to_str().unwrap().to_string()); assert!(folder.is_err()); assert!(matches!( @@ -105,7 +105,7 @@ mod tests { #[test] fn test_process_folder_empty_dir() { let mut ressources_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")); - ressources_dir.push("../../test_dataset/empty"); + ressources_dir.push("../../../test_dataset/empty"); fs::create_dir_all(ressources_dir.to_str().unwrap()).unwrap(); let folder = process_folder_struct(ressources_dir.to_str().unwrap().to_string()).unwrap(); assert_eq!(folder.name, ressources_dir.to_str().unwrap().to_string());