Skip to content

Commit

Permalink
fix: test with move folder [HOOK FAIL OK]
Browse files Browse the repository at this point in the history
  • Loading branch information
batleforc committed Aug 23, 2024
1 parent c63147a commit d2f9976
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
18 changes: 17 additions & 1 deletion cicd/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.

Expand Down Expand Up @@ -53,3 +54,18 @@ flowchart TD;
end
```

## Tasks

- [ ] Update Github with pipeline status <https://hub.tekton.dev/tekton/task/github-set-status>
- [ ] Generate a Software Bill of Materials (SBOM) <https://hub.tekton.dev/tekton/task/syft>
- [ ] Analyze the SBOM for vulnerabilities <https://hub.tekton.dev/tekton/task/grype>
- [ ] Send a notification to discord <https://hub.tekton.dev/tekton/task/send-to-webhook-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 <https://hub.tekton.dev/tekton/task/pluto>
- [ ] Check secret <https://hub.tekton.dev/tekton/task/kube-linter>
6 changes: 3 additions & 3 deletions libs/back/markdown_struct/src/folder_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit d2f9976

Please sign in to comment.