[gitlab] Add shell script unit testing with bats
This commit is contained in:
parent
beb5f1c323
commit
47be465ea7
1 changed files with 8 additions and 0 deletions
|
|
@ -24,3 +24,11 @@ lint:
|
|||
- find . -type f -name '*.sh' | xargs shfmt -d -i 2
|
||||
- echo "--------- CHECKING ZSH SHELLSCRIPTS -------------"
|
||||
- find . -type f -name '*.zsh' | xargs shfmt -d -i 2
|
||||
|
||||
test:
|
||||
stage: test
|
||||
image: bats/bats:latest
|
||||
before_script:
|
||||
- bats --version
|
||||
script:
|
||||
- bats -r .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue