Skip to content

request: how to set up type checking for tests #9

Answered by mrcjkb
mikavilpas asked this question in Q&A
Discussion options

You must be logged in to vote

Hey 👋

Thanks for the nice words 👋

Looking at your workflow file:

      directories: |
        lua
        tests

...will run the lua-language-server type checks once on the lua directory, and once on the tests directory.
It can't see your types on the second run, because it sees tests as the root, and doesn't look up.

You should be able to fix this by running the checks in the project root:

      directories: .

And you can provide further configuration via a .luarc.json.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mrcjkb
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #8 on May 26, 2024 13:39.