diff options
-rw-r--r-- | .github/workflows/main.yml | 6 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/Makefile | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4f430a3..836d891 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,8 +10,4 @@ jobs: steps: - uses: actions/checkout@v1 - name: Run tests. - run: | - wget https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz - xz -cd shellcheck-v0.7.1.linux.x86_64.tar.xz | tar xf - - export PATH=shellcheck-v0.7.1:$PATH - make test + run: make test @@ -17,7 +17,7 @@ test: ${BIN} bin/cpt-stat bin bin/cpt-stat Makefile bin/cpt-readlink /bin/sh - shellcheck -P src -x -f gcc src/* contrib/* + ${MAKE} -C src test install-bin: ${BIN} for bin in ${BIN}; do \ diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..aae4e59 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,4 @@ +test: + shellcheck -x -f gcc ./cpt* ../contrib/* + +.PHONY: test |