Skip to content

Commit

Permalink
type check sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Badragan committed May 22, 2024
1 parent 8ca9dfc commit 5f99c4a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/.luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"runtime.version": "LuaJIT",
"runtime.path": ["lua/?.lua", "lua/?/init.lua"],
"Lua.workspace.library": ["/github/workspace/deps/neodev.nvim/types/stable"],
"Lua.diagnostics.libraryFiles": "Disable",
"Lua.workspace.checkThirdParty": "Disable"
}
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,22 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .

typecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Checkout dependency neodev
uses: actions/checkout@v3
with:
repository: "folke/neodev.nvim"
path: "deps/neodev.nvim"

- name: Type Check Code Base
uses: mrcjkb/[email protected]
with:
configpath: .github/workflows/.luarc.json
directories: |
lua

0 comments on commit 5f99c4a

Please sign in to comment.