Skip to content

Commit

Permalink
feat(ci): update ci to base.nvim template
Browse files Browse the repository at this point in the history
  • Loading branch information
S1M0N38 committed Sep 23, 2024
1 parent 9b42a97 commit 0a69989
Show file tree
Hide file tree
Showing 13 changed files with 80 additions and 123 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*.lua]
indent_style = space
indent_size = 2
continuation_indent = 2
quote_style = double
max_line_length = 120
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
call_parentheses = true
8 changes: 2 additions & 6 deletions .github/workflows/.luarc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"Lua.runtime.version": "LuaJIT",
"Lua.runtime.path": [
"lua/?.lua",
"lua/?/init.lua"
],
"Lua.workspace.library": [
"/github/workspace/deps/neodev.nvim/types/stable",
"/home/runner/work/dante.nvim/dante.nvim/deps/neodev.nvim/types/stable",
"${3rd}/luassert/library",
"${3rd}/busted/library"
],
"Lua.diagnostics.libraryFiles": "Disable",
"Lua.workspace.checkThirdParty": "Disable"
"Lua.diagnostics.neededFileStatus": "Any"
}
15 changes: 0 additions & 15 deletions .github/workflows/lint.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/please-release.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# googleapis/release-please-action
# Automated releases based on conventional commits
# https://github.com/googleapis/release-please-action

# NOTE: you need to create a PAT (Personal Access Token) in order to publish your plugin on GitHub
# Follow https://github.com/nvim-neorocks/sample-luarocks-plugin

name: Release GitHub

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.PAT }}
release-type: simple
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
---
name: "Release"
# nvim-neorocks/luarocks-tag-release
# GitHub workflow for automatically generating Luarocks releases from tags and running busted tests
# It use .github/workflow/.luarc.json as config file
# https://github.com/nvim-neorocks/luarocks-tag-release


# NOTE: you need to create a LUAROCKS_API_KEY in order to publish your plugin on LuaRocks
# Follow https://github.com/nvim-neorocks/sample-luarocks-plugin

name: Release LuaRocks

on:
push:
tags:
Expand All @@ -21,6 +30,6 @@ jobs:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
with:
detailed_description: |
A Neovim grammar checker powered by LLM.
A template for Neovim plugin
copy_directories: |
{{ neovim.plugin.dirs }}
14 changes: 10 additions & 4 deletions .github/workflows/tests.yml → .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
---
# nvim-neorocks/nvim-busted-action
# A composite GitHub action for running busted tests with Neovim
# https://github.com/nvim-neorocks/nvim-busted-action

name: Run tests

on:
pull_request: ~
push:
branches:
- main
- dev
workflow_dispatch:

jobs:
Expand All @@ -13,13 +18,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
neovim_version: ['stable']
neovim_version: ["stable"]

steps:
- uses: actions/checkout@v3
- name: Run tests
uses: nvim-neorocks/nvim-busted-action@v1
env:
GROQ_API_KEY_DANTE_NVIM: ${{ secrets.GROQ_API_KEY_DANTE_NVIM }}
# env:
# If env vars are use in tests, define them here and on GitHub in repo settings
# EXAMPLE_ENV_VAR: ${{ secrets.EXAMPLE_ENV_VAR }}
with:
nvim_version: ${{ matrix.neovim_version }}
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: Type Check Code Base
# lua-typecheck-action by mrcjkb
# A GitHub action that lets you leverage sumneko lua-language-server and EmmyLua to statically type check lua code.
# https://github.com/mrcjkb/lua-typecheck-action

name: Run typecheck

on:
pull_request: ~
push:
branches:
- '*'
- "*"
workflow_dispatch:

jobs:
Expand All @@ -14,6 +20,7 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

# Neovim types, maybe there is a better way
- name: Checkout dependency neodev
uses: actions/checkout@v3
with:
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/stylua.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .luacheckrc

This file was deleted.

1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ repos:
- id: conventional-pre-commit
stages: [commit-msg]
args: []

6 changes: 0 additions & 6 deletions .stylua.toml

This file was deleted.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<h1 align="center">✎&nbsp;&nbsp;dante.nvim&nbsp;&nbsp;✧</h1>

<p align="center">
<a href="https://github.com/S1M0N38/dante.nvim/actions/workflows/tests.yml">
<img alt="Tests workflow" src="https://img.shields.io/github/actions/workflow/status/S1M0N38/dante.nvim/tests.yml?style=for-the-badge&label=Tests"/>
<a href="https://github.com/S1M0N38/dante.nvim/actions/workflows/run-tests.yml">
<img alt="Tests workflow" src="https://img.shields.io/github/actions/workflow/status/S1M0N38/dante.nvim/run-tests.yml?style=for-the-badge&label=Tests"/>
</a>
<a href="https://luarocks.org/modules/S1M0N38/dante.nvim">
<img alt="LuaRocks release" src="https://img.shields.io/luarocks/v/S1M0N38/dante.nvim?style=for-the-badge&color=5d2fbf"/>
Expand Down Expand Up @@ -69,7 +69,7 @@ To get started with dante.nvim, read the documentation with [`:help dante`](http

This plugin was inspired by the following projects:

* [jackMort/ChatGPT.nvim](https://github.com/jackMort/ChatGPT.nvim)
* [David-Kunz/gen.nvim](https://github.com/David-Kunz/gen.nvim)
* [Bryley/neoai.nvim](https://github.com/Bryley/neoai.nvim)
* [olimorris/codecompanion.nvim](https://github.com/olimorris/codecompanion.nvim)
- [jackMort/ChatGPT.nvim](https://github.com/jackMort/ChatGPT.nvim)
- [David-Kunz/gen.nvim](https://github.com/David-Kunz/gen.nvim)
- [Bryley/neoai.nvim](https://github.com/Bryley/neoai.nvim)
- [olimorris/codecompanion.nvim](https://github.com/olimorris/codecompanion.nvim)

0 comments on commit 0a69989

Please sign in to comment.