Skip to content

Commit

Permalink
ci: add typechecking for entire codebase (nvim-neorg#1160)
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro authored and benlubas committed Jan 11, 2024
1 parent f947ed3 commit f929496
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/.luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"runtime.version": "LuaJIT",
"runtime.path": [
"lua/?.lua",
"lua/?/init.lua"
],
"workspace.library": [
"/github/workspace/deps/neodev.nvim/types/stable"
],
"diagnostics.libraryFiles": "Disable",
"workspace.checkThirdParty": "Disable"
}
28 changes: 28 additions & 0 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: lua_ls-typecheck
on:
pull_request: ~
push:
branches:
- '*'

jobs:
build:
name: Type Check Code Base
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

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

- name: Type Check Code Base
uses: mrcjkb/lua-typecheck-action@v0.1.2
with:
configpath: .github/workflows/.luarc.json
directories: |
lua

0 comments on commit f929496

Please sign in to comment.