Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
pull_request:
push:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install shellcheck
run: sudo apt-get update && sudo apt-get install -y shellcheck
- name: Run shellcheck
run: |
find . -name '*.sh' -print0 | xargs -0 shellcheck
- name: Check bash syntax
run: |
for f in $(find . -name '*.sh'); do
bash -n "$f"
done
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ simply typing:
utils
```


## Continuous Integration

Pull requests run a simple workflow that lints all shell scripts with [ShellCheck](https://www.shellcheck.net/) and checks their syntax with `bash -n`. This helps ensure that installation scripts remain valid without running the heavier installers like Airbyte.