-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: merge workflow jobs and add makefile
- Loading branch information
Showing
12 changed files
with
86 additions
and
51 deletions.
There are no files selected for viewing
Submodule nvim_doc_tools
deleted from
d146f2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#!/bin/bash | ||
set -e | ||
luacheck lua tests | ||
|
||
stylua --check . | ||
make fastlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -e | ||
IFS=' ' | ||
while read local_ref _local_sha _remote_ref _remote_sha; do | ||
remote_main=$( (git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null || echo "///master") | cut -f 4 -d / | tr -d "[:space:]") | ||
local_ref_short=$(echo "$local_ref" | cut -f 3 -d / | tr -d "[:space:]") | ||
if [ "$local_ref_short" = "$remote_main" ]; then | ||
make lint | ||
make test | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,5 @@ luac.out | |
.direnv/ | ||
.testenv/ | ||
doc/tags | ||
scripts/nvim_doc_tools | ||
scripts/nvim-typecheck-action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule ".github/nvim_doc_tools"] | ||
path = .github/nvim_doc_tools | ||
url = https://github.com/stevearc/nvim_doc_tools | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.PHONY: all doc test lint fastlint clean | ||
|
||
all: doc lint test | ||
|
||
doc: scripts/nvim_doc_tools | ||
python scripts/main.py generate | ||
python scripts/main.py lint | ||
|
||
test: | ||
./run_tests.sh | ||
|
||
lint: scripts/nvim-typecheck-action fastlint | ||
./scripts/nvim-typecheck-action/typecheck.sh --workdir scripts/nvim-typecheck-action lua | ||
|
||
fastlint: scripts/nvim_doc_tools | ||
python scripts/main.py lint | ||
luacheck lua tests --formatter plain | ||
stylua --check lua tests | ||
|
||
scripts/nvim_doc_tools: | ||
git clone https://github.com/stevearc/nvim_doc_tools scripts/nvim_doc_tools | ||
|
||
scripts/nvim-typecheck-action: | ||
git clone https://github.com/stevearc/nvim-typecheck-action scripts/nvim-typecheck-action | ||
|
||
clean: | ||
rm -rf scripts/nvim_doc_tools scripts/nvim-typecheck-action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.