diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index e3dd38dd..4abb55f7 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -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 diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 00000000..65267a16 --- /dev/null +++ b/.luarc.json @@ -0,0 +1,4 @@ +{ + "runtime.path": ["../neodev/types/stable/?.lua"], + "workspace.library": ["../neodev/types/stable/?.lua"] +}