mirror of
https://github.com/Anvilcraft/modpacktools
synced 2024-05-19 11:54:20 +02:00
add preCommit task with test and lint check
This commit is contained in:
parent
be22304295
commit
5b29bfe3f4
|
@ -128,3 +128,14 @@ ktlint {
|
|||
)
|
||||
)
|
||||
}
|
||||
|
||||
//RUN THIS BEFORE COMMITTING! (i recommend adding a git pre-commit hook for this)
|
||||
tasks.register("preCommit") {
|
||||
group = "verification"
|
||||
description = "runs the linter and tests"
|
||||
|
||||
dependsOn(
|
||||
"ktlintCheck",
|
||||
"test"
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue