ci: use dependabot for updating github action versions #121
Workflow file for this run
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
# copied from https://github.com/nvim-neorg/neorg/blob/1e63f84f04caed4b8831b8122c4ba2e7dbda389f/.github/workflows/typecheck.yml#L17 | |
name: Type check the code base | |
on: | |
pull_request: ~ | |
push: | |
branches: | |
- "*" | |
jobs: | |
build: | |
name: Type Check Code Base | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/[email protected] | |
- name: Checkout dependency neodev # get neodev and neovim/runtime for builtin types | |
uses: actions/[email protected] | |
with: | |
repository: "folke/neodev.nvim" | |
path: "deps/neodev.nvim" | |
- name: Checkout dependency plenary | |
uses: actions/[email protected] | |
with: | |
repository: "nvim-lua/plenary.nvim" | |
path: "deps/plenary.nvim" | |
- name: Checkout neovim for type annotations | |
uses: actions/[email protected] | |
with: | |
repository: "neovim/neovim" | |
path: "deps/neovim" | |
- uses: leafo/[email protected] # get luarocks dependencies for their types (eg `PathlibPath`) | |
with: | |
luaVersion: "5.1" | |
- uses: leafo/[email protected] | |
- name: install dependencies | |
run: | | |
luarocks init | |
luarocks install --only-deps ./*.rockspec | |
- name: Typecheck the code base | |
uses: mrcjkb/[email protected] | |
with: | |
configpath: .github/workflows/.luarc.json | |
directories: | | |
lua |