From 869af60a516c7dab4bb7e9b74eb2c358925f3deb Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 21 Sep 2024 11:14:42 +0100 Subject: [PATCH] build: add justfile for self-testing --- Cargo.toml | 2 +- justfile | 8 ++++++++ src/scanner.rs | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 justfile diff --git a/Cargo.toml b/Cargo.toml index 40dcfdf..30d62dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "forgejo-todo-checker" -version = "0.1.0" +version = "1.0.0" edition = "2021" [dependencies] diff --git a/justfile b/justfile new file mode 100644 index 0000000..b5b393b --- /dev/null +++ b/justfile @@ -0,0 +1,8 @@ +self-test: + just test $PWD forgejo-todo-checker + +test path repo: + GITHUB_WORKSPACE={{ path }} \ + GITHUB_REPOSITORY=kemitix/{{ repo }} \ + GITHUB_SERVER_URL=https://git.kemitix.net \ + cargo run diff --git a/src/scanner.rs b/src/scanner.rs index d4bc6b0..d16d436 100644 --- a/src/scanner.rs +++ b/src/scanner.rs @@ -13,6 +13,7 @@ pub fn find_markers(config: &Config, issues: HashSet) -> Result