-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1.04 KB
/
run-typecheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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:
build:
name: Type Check Code Base
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
# Neovim types, maybe there is a better way
- name: Checkout dependency neodev
uses: actions/checkout@v3
with:
repository: "folke/neodev.nvim"
path: "deps/neodev.nvim"
- name: Checkout dependency neodev
uses: actions/checkout@v3
with:
repository: "S1M0N38/ai.nvim"
path: "deps/ai.nvim"
- name: Type Check Code Base
uses: mrcjkb/lua-typecheck-action@v0
with:
checklevel: Warning
configpath: .github/workflows/.luarc.json
directories: |
lua
spec