From c4e6afcc4487ce3107eb5c6a3624082104b676b6 Mon Sep 17 00:00:00 2001 From: merakor Date: Tue, 8 Sep 2020 13:08:19 +0000 Subject: tests: run primitive shellcheck instead of downloading FossilOrigin-Name: 224becc92e0c99c79727da460d3c054dae031dd75fa5c4e20428ae5c1881ad30 --- .github/workflows/main.yml | 6 +----- Makefile | 2 +- src/Makefile | 4 ++++ 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 src/Makefile 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 -- cgit v1.2.3