aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-09-08 13:08:19 +0000
committermerakor <cem@ckyln.com>2020-09-08 13:08:19 +0000
commitc4e6afcc4487ce3107eb5c6a3624082104b676b6 (patch)
treeed4c62c325b829faf8afc1235bd4cbe73731a642
parenta5751ed0a949c0e6735dbfcedc7eb1cd07e76cd1 (diff)
downloadcpt-c4e6afcc4487ce3107eb5c6a3624082104b676b6.tar.gz
tests: run primitive shellcheck instead of downloading
FossilOrigin-Name: 224becc92e0c99c79727da460d3c054dae031dd75fa5c4e20428ae5c1881ad30
-rw-r--r--.github/workflows/main.yml6
-rw-r--r--Makefile2
-rw-r--r--src/Makefile4
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
diff --git a/Makefile b/Makefile
index 64b914d..3b2529b 100644
--- a/Makefile
+++ b/Makefile
@@ -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