Add bash script syntax check

This commit is contained in:
joeperri95 2021-08-25 01:40:24 -04:00
parent ee73724f02
commit f6842fae34

14
.github/workflows/tests.yml vendored Normal file
View file

@ -0,0 +1,14 @@
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@master
- name: syntax-check
run: for i in $(ls); do echo $i; if [ ! -z $(bash -n $i) ]; then $(exit 1); fi; done
working-directory: scripts
shell: bash