aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.github/pre-commit2
-rwxr-xr-x.github/pre-push4
-rw-r--r--Makefile6
3 files changed, 9 insertions, 3 deletions
diff --git a/.github/pre-commit b/.github/pre-commit
index 240abeb..c64fbec 100755
--- a/.github/pre-commit
+++ b/.github/pre-commit
@@ -1,3 +1,3 @@
#!/bin/bash
set -e
-make lint
+make fastlint
diff --git a/.github/pre-push b/.github/pre-push
new file mode 100755
index 0000000..b837eec
--- /dev/null
+++ b/.github/pre-push
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -e
+make lint
+make test
diff --git a/Makefile b/Makefile
index 3a52951..85ff804 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: doc test lint
+.PHONY: doc test lint fastlint
doc: scripts/nvim_doc_tools
python scripts/main.py generate
@@ -6,10 +6,12 @@ doc: scripts/nvim_doc_tools
test:
./run_tests.sh
-lint: scripts/nvim-typecheck-action scripts/nvim_doc_tools
+fastlint: scripts/nvim_doc_tools
python scripts/main.py lint
luacheck lua tests --formatter plain
stylua --check lua tests
+
+lint: scripts/nvim-typecheck-action fastlint
./scripts/nvim-typecheck-action/typecheck.sh lua
scripts/nvim_doc_tools: