From fd445815f17ab15ec2081a7daeb6d366ea3c630e Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Sat, 30 Oct 2021 13:32:09 -0700 Subject: chore: unify makefile to run stylua and luacheck --- .github/workflows/lint.yml | 2 +- Makefile | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7c0d9133..ce14ade8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,7 +18,7 @@ jobs: sudo luarocks install luacheck - name: Run luacheck run: | - sudo make lint + luacheck lua/* test/* style-lint: runs-on: [ubuntu-latest] steps: diff --git a/Makefile b/Makefile index 6f3c6db6..5b3f0b17 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ test: sh ./scripts/run_test.sh lint: + @echo "\nRunning luacheck\n" luacheck lua/* test/* - -style-lint: + @echo "\nRunning stylua\n" stylua --check . -.PHONY: test lint style-lint +.PHONY: test lint -- cgit v1.2.3-70-g09d2