diff options
author | merakor <cem@ckyln.com> | 2020-09-08 13:08:19 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-09-08 13:08:19 +0000 |
commit | c4e6afcc4487ce3107eb5c6a3624082104b676b6 (patch) | |
tree | ed4c62c325b829faf8afc1235bd4cbe73731a642 | |
parent | a5751ed0a949c0e6735dbfcedc7eb1cd07e76cd1 (diff) | |
download | cpt-c4e6afcc4487ce3107eb5c6a3624082104b676b6.tar.gz |
tests: run primitive shellcheck instead of downloading
FossilOrigin-Name: 224becc92e0c99c79727da460d3c054dae031dd75fa5c4e20428ae5c1881ad30
-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 |