From f6842fae34226b4c67de170fab73691c8716221f Mon Sep 17 00:00:00 2001 From: joeperri95 Date: Wed, 25 Aug 2021 01:40:24 -0400 Subject: [PATCH] Add bash script syntax check --- .github/workflows/tests.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..d1f7544 --- /dev/null +++ b/.github/workflows/tests.yml @@ -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 \ No newline at end of file