build: add justfile for self-testing
All checks were successful
Test / test (push) Successful in 10s
All checks were successful
Test / test (push) Successful in 10s
This commit is contained in:
parent
1dea159a7b
commit
869af60a51
3 changed files with 10 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "forgejo-todo-checker"
|
name = "forgejo-todo-checker"
|
||||||
version = "0.1.0"
|
version = "1.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
8
justfile
Normal file
8
justfile
Normal file
|
@ -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
|
|
@ -13,6 +13,7 @@ pub fn find_markers(config: &Config, issues: HashSet<Issue>) -> Result<Markers,
|
||||||
for file in Walk::new(config.fs().base()).flatten() {
|
for file in Walk::new(config.fs().base()).flatten() {
|
||||||
let path = file.path();
|
let path = file.path();
|
||||||
if config.fs().path_is_file(path)? {
|
if config.fs().path_is_file(path)? {
|
||||||
|
// TODO: (#4) ignore non-text files
|
||||||
scan_file(path, config, &mut markers, &issues)?;
|
scan_file(path, config, &mut markers, &issues)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue