-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from barrientosvctor/develop
ci: add pipelines
- Loading branch information
Showing
20 changed files
with
1,084 additions
and
398 deletions.
There are no files selected for viewing
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,12 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
|
||
[Makefile] | ||
indent_style = tab | ||
tab_width = 8 |
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,63 @@ | ||
--- | ||
name: Neovim | ||
run-name: Neovim checks | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "lua/*" | ||
- "test/*" | ||
- "colors/*" | ||
branches: ["main", "develop"] | ||
push: | ||
paths: | ||
- "lua/*" | ||
- "test/*" | ||
- "colors/*" | ||
branches: main | ||
|
||
jobs: | ||
ubuntu: | ||
name: Ubuntu | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Neovim | ||
uses: MunifTanjim/setup-neovim-action@v1 | ||
with: | ||
tag: nightly | ||
- name: Run neovim | ||
run: | | ||
nvim --version | ||
nvim --headless -u test/init.lua +q | ||
macos: | ||
name: Macos | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Neovim | ||
run: | | ||
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim-macos-x86_64.tar.gz | ||
xattr -c ./nvim-macos-x86_64.tar.gz | ||
tar xzvf nvim-macos-x86_64.tar.gz &> /dev/null | ||
ln -s $(pwd)/nvim-macos-x86_64/bin/nvim /usr/local/bin/nvim | ||
- name: Run neovim | ||
run: | | ||
nvim --version | ||
nvim --headless -u test/init.lua +q | ||
windows: | ||
name: Windows | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Neovim | ||
run: | | ||
C:\msys64\usr\bin\wget.exe -q https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.zip | ||
7z x nvim-win64.zip | ||
Add-Content $env:GITHUB_PATH ".\nvim-win64\bin\" | ||
- name: Run neovim | ||
run: | | ||
nvim --version | ||
nvim --headless -u test/init.lua +q |
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,38 @@ | ||
name: Tests | ||
run-name: Abyss.nvim tests | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "lua/*" | ||
- "test/*" | ||
- "colors/*" | ||
branches: ["main", "develop"] | ||
push: | ||
paths: | ||
- "lua/*" | ||
- "test/*" | ||
- "colors/*" | ||
branches: main | ||
|
||
jobs: | ||
build: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Neovim | ||
uses: MunifTanjim/setup-neovim-action@v1 | ||
with: | ||
tag: nightly | ||
|
||
- name: Install plenary | ||
run: | | ||
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim test/plenary | ||
- name: Run tests | ||
run: | | ||
nvim --version | ||
[ ! -d test ] && exit 0 | ||
nvim --headless --noplugin -u test/minimal_init.vim -c "PlenaryBustedDirectory ./test/abyss { minimal_init = './test/minimal_init.vim', sequential = true}" |
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,66 @@ | ||
--- | ||
name: Vim | ||
run-name: Vim checks | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "lua/*" | ||
- "test/*" | ||
- "colors/*" | ||
branches: ["main", "develop"] | ||
push: | ||
paths: | ||
- "lua/*" | ||
- "test/*" | ||
- "colors/*" | ||
branches: main | ||
|
||
jobs: | ||
ubuntu: | ||
name: Ubuntu | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Vim | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install vim-gtk lua5.4 | ||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | ||
- name: Run vim | ||
run: | | ||
vim --version | ||
vim -u test/init.vim | ||
macos: | ||
name: Macos | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Vim | ||
run: | | ||
brew install vim | ||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | ||
- name: Run vim | ||
run: | | ||
vim --version | ||
vim -u test/init.vim | ||
windows: | ||
name: Windows | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Vim | ||
run: | | ||
choco install vim | ||
C:\msys64\usr\bin\wget.exe -q https://downloads.sourceforge.net/project/luabinaries/5.4.2/Tools%20Executables/lua-5.4.2_Win64_bin.zip | ||
7z x lua-5.4.2_Win64_bin.zip | ||
move lua54.dll C:\Windows\System32\ | ||
iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |` | ||
ni $HOME/vimfiles/autoload/plug.vim -Force | ||
- name: Run vim | ||
run: | | ||
vim --version | ||
gvim -u test/init.vim |
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,11 +1,14 @@ | ||
STYLUA_PKG = stylua | ||
BASE_STYLUA_FLAGS = --config-path .stylua.toml --no-editorconfig --glob "**/*.lua" | ||
BASE_STYLUA_FLAGS = --config-path .stylua.toml --glob "**/*.lua" | ||
|
||
check: | ||
help: ## Prints help for targets with comments | ||
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
check: ## Output the diff in files where code style is not applied | ||
$(STYLUA_PKG) $(BASE_STYLUA_FLAGS) --check . | ||
|
||
fmt: | ||
fmt: ## Format all lua files according to stylua.toml directives | ||
$(STYLUA_PKG) $(BASE_STYLUA_FLAGS) . | ||
|
||
lint: | ||
lint: ## Run the lua linter | ||
luacheck lua |
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
Oops, something went wrong.