Set up shfmt
This commit is contained in:
parent
769d7da9b2
commit
5dbb6aea8f
4 changed files with 16 additions and 6 deletions
|
|
@ -8,6 +8,7 @@
|
|||
shellcheck-minimal,
|
||||
gitMinimal,
|
||||
resholve,
|
||||
shfmt,
|
||||
}:
|
||||
|
||||
let
|
||||
|
|
@ -20,6 +21,7 @@ resholve.mkDerivation {
|
|||
src = fs.toSource {
|
||||
root = ./.;
|
||||
fileset = fs.unions [
|
||||
./.editorconfig
|
||||
./bin
|
||||
./test
|
||||
];
|
||||
|
|
@ -33,11 +35,13 @@ resholve.mkDerivation {
|
|||
shellcheck-minimal
|
||||
bats
|
||||
gitMinimal
|
||||
shfmt
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
shellcheck bin/git-check-assertions test/git-check-assertions.bats
|
||||
shfmt -d bin/git-check-assertions test/git-check-assertions.bats
|
||||
./test/git-check-assertions.bats
|
||||
runHook postCheck
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue