-
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: move type checking code to use the autogenerated
.luarc.json
cr…
…eated by devenv this prevents errors related to `busted` and other testing utilities
- Loading branch information
Showing
3 changed files
with
10 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,37 +6,24 @@ on: | |
- '*' | ||
|
||
jobs: | ||
build: | ||
type-check: | ||
name: Type Check Code Base | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout dependency neodev # get neodev and neovim/runtime for builtin types | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: "folke/neodev.nvim" | ||
path: "deps/neodev.nvim" | ||
- name: Checkout neovim for type annotations | ||
uses: actions/checkout@v3 | ||
- uses: DeterminateSystems/nix-installer-action@v10 | ||
- uses: cachix/cachix-action@v14 | ||
with: | ||
repository: "neovim/neovim" | ||
path: "deps/neovim" | ||
|
||
- uses: leafo/gh-actions-lua@v9 # get luarocks dependencies for their types (eg `PathlibPath`) | ||
with: | ||
luaVersion: "5.1" | ||
- uses: leafo/gh-actions-luarocks@v4 | ||
- name: install dependencies | ||
run: | | ||
luarocks init | ||
luarocks install --only-deps ./*.rockspec | ||
name: devenv | ||
- name: Install devenv.sh | ||
run: nix profile install nixpkgs#devenv | ||
- name: Enter development shell | ||
run: devenv shell | ||
- name: Type Check Code Base | ||
uses: mrcjkb/[email protected] | ||
with: | ||
configpath: .github/workflows/.luarc.json | ||
configpath: ".luarc.json" | ||
directories: | | ||
lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters