Merge pull request #120 from joeperri95/master

Add bash script syntax check
This commit is contained in:
Ethan Edwards 2021-08-26 16:22:38 -04:00 committed by GitHub
commit 13fe1ca5c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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