mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-06-27 02:30:08 +00:00
feat: Add shellcheck to CI and Make target (#10)
This commit is contained in:
parent
64e1c725eb
commit
8eba1b6006
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -57,6 +57,13 @@ jobs:
|
||||
source .venv/bin/activate
|
||||
make check
|
||||
|
||||
shellcheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: ShellCheck
|
||||
uses: ludeeus/action-shellcheck@master
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
|
6
Makefile
6
Makefile
@ -109,6 +109,12 @@ check-tests:
|
||||
black --line-length 100 test_${PACKAGE_NAME} --check
|
||||
flake8 test_${PACKAGE_NAME}
|
||||
|
||||
## check-scripts: run shellcheck
|
||||
.PHONY: check-scripts
|
||||
check-scripts:
|
||||
# Fail if any of these files have warnings
|
||||
scripts/shellcheck.sh
|
||||
|
||||
## tidy: run black
|
||||
.PHONY: tidy
|
||||
tidy:
|
||||
|
4
scripts/shellcheck.sh
Executable file
4
scripts/shellcheck.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
find scripts -name "*.sh" -exec shellcheck {} +
|
||||
|
Loading…
x
Reference in New Issue
Block a user