Initial commit · jrop/morph.nvim@d259f03 · GitHub
Skip to content

Commit d259f03

Browse files
committed
Initial commit
0 parents  commit d259f03

14 files changed

Lines changed: 1800 additions & 0 deletions

File tree

‎.busted‎

Lines changed: 13 additions & 0 deletions

‎.emmyrc.json‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/EmmyLuaLs/emmylua-analyzer-rust/refs/heads/main/crates/emmylua_code_analysis/resources/schema.json",
3+
"diagnostics": {
4+
"disable": [
5+
"redefined-local"
6+
]
7+
},
8+
"runtime": {
9+
"version": "LuaJIT"
10+
},
11+
"workspace": {
12+
"library": [
13+
"$VIMRUNTIME",
14+
"library/busted"
15+
]
16+
}
17+
}

‎.github/workflows/ci.yaml‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
name: NeoVim tests
3+
on: [push]
4+
jobs:
5+
code-quality:
6+
runs-on: ubuntu-latest
7+
env:
8+
XDG_CONFIG_HOME: ${{ github.workspace }}/.config/
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
submodules: true
13+
- uses: cachix/install-nix-action@v31
14+
with:
15+
nix_path: nixpkgs=channel:nixos-unstable
16+
17+
- name: Populate Nix store
18+
run:
19+
nix-shell --pure --run 'true'
20+
21+
- name: Type-check
22+
run:
23+
nix-shell --pure --run 'make lint'
24+
25+
- name: Check formatting with stylua
26+
run:
27+
nix-shell --pure --run 'make fmt-check'
28+
29+
- name: Run busted tests
30+
run:
31+
nix-shell --pure --run 'make test'

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
luacov.*.out

‎.gitmodules‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "library/busted"]
2+
path = library/busted
3+
url = https://github.com/LuaCATS/busted
4+
branch = main

‎.luacov‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
return {
2+
include = {
3+
'lua/morph',
4+
},
5+
tick = true,
6+
}

‎.styluaignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
library/

‎Makefile‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
export VIMRUNTIME := $(shell nvim -u NORC --headless +'echo $$VIMRUNTIME' +'quitall' 2>&1)
2+
3+
all: lint fmt-check test
4+
5+
lint:
6+
@echo "## Typechecking"
7+
@emmylua_check .
8+
9+
fmt-check:
10+
@echo "## Checking code format"
11+
@stylua --check .
12+
13+
fmt:
14+
@echo "## Formatting code"
15+
@stylua .
16+
17+
test:
18+
@rm -f luacov.*.out
19+
@echo "## Running tests"
20+
@busted --coverage --verbose
21+
@echo "## Generating coverage report"
22+
@luacov
23+
@awk '/^Summary$$/{flag=1;next} flag{print}' luacov.report.out
24+
25+
watch:
26+
@watchexec -c -e lua make

‎README.md‎

Lines changed: 278 additions & 0 deletions

‎library/busted‎

Submodule busted added at 5ed85d0

0 commit comments

Comments
 (0)