Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add github action to type check lua files #160

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,25 @@ jobs:
dry: true
# GitHub Token or PAT token used to authenticate against a repository
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

emmyLua:
name: EmmyLua Type Check
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: main

- name: Checkout neovim lua types
uses: actions/checkout@v4
with:
repository: folke/neodev.nvim
path: neodev

- uses: mrcjkb/lua-typecheck-action@v0.1.1
with:
configpath: "main/.luarc.json"
directories: |
main/dot_config/nvim/lua
4 changes: 4 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"runtime.path": ["../neodev/types/stable/?.lua"],
"workspace.library": ["../neodev/types/stable/?.lua"]
}
Loading