Skip to content

Commit

Permalink
fix(workflows): update Lua workspace and add environment variable for…
Browse files Browse the repository at this point in the history
… tests

- Added `ai.nvim` types to Lua workspace library in `.luarc.json`.
- Set `GROQ_API_KEY_DANTE_NVIM` environment variable in `run-tests.yml`.
- Added checkout step for `ai.nvim` dependency in `run-typecheck.yml`.
  • Loading branch information
S1M0N38 committed Sep 23, 2024
1 parent 2cabf91 commit 4e8a974
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/.luarc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"Lua.runtime.version": "LuaJIT",
"Lua.workspace.library": [
"/home/runner/work/dante.nvim/dante.nvim/deps/neodev.nvim/types/stable",
"/home/runner/work/dante.nvim/dante.nvim/deps/ai.nvim/types",
"${3rd}/luassert/library",
"${3rd}/busted/library"
],
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
- uses: actions/checkout@v3
- name: Run tests
uses: nvim-neorocks/nvim-busted-action@v1
# env:
# If env vars are use in tests, define them here and on GitHub in repo settings
# EXAMPLE_ENV_VAR: ${{ secrets.EXAMPLE_ENV_VAR }}
env:
GROQ_API_KEY_DANTE_NVIM: ${{ secrets.GROQ_API_KEY_DANTE_NVIM }}
with:
nvim_version: ${{ matrix.neovim_version }}
6 changes: 6 additions & 0 deletions .github/workflows/run-typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
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:
Expand Down

0 comments on commit 4e8a974

Please sign in to comment.