Merge pull request #120 from joeperri95/master
Add bash script syntax check
This commit is contained in:
commit
13fe1ca5c5
1 changed files with 14 additions and 0 deletions
14
.github/workflows/tests.yml
vendored
Normal file
14
.github/workflows/tests.yml
vendored
Normal 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
|
Loading…
Reference in a new issue