-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4758e15
commit 803539b
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Luals2dox Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Luals2dox | ||
- name: Install luals2dox | ||
uses: actions/checkout@main | ||
|
||
# Install Lua | ||
- name: Install Lua | ||
uses: leafo/gh-actions-lua@v10 | ||
with: | ||
luaVersion: '5.3' | ||
|
||
# Install luarocks | ||
- name: Install luarocks | ||
uses: leafo/gh-actions-luarocks@v4 | ||
|
||
# Install Lua modules | ||
- name: Install Lua modules | ||
run: | | ||
luarocks install busted | ||
luarocks install argparse | ||
luarocks install f-strings | ||
luarocks install LPeg | ||
luarocks install lua-cjson | ||
luarocks install luaposix | ||
luarocks install luacov | ||
luarocks install luacov-console | ||
luarocks install luacov-coveralls | ||
luarocks install busted-htest | ||
luarocks install --server=https://luarocks.org/dev luadiffer | ||
# Install Doxygen | ||
- name: Install Doxygen | ||
run: sudo apt-get install doxygen | ||
|
||
# Install Ninja | ||
- name: Install Ninja Build | ||
run: sudo apt-get install ninja-build | ||
|
||
# Clone LuaLS | ||
- name: Clone LuaLS | ||
uses: GuillaumeFalourd/clone-github-repo-action@v2.3 | ||
with: | ||
owner: 'LuaLS' | ||
repository: 'lua-language-server' | ||
branch: 'master' | ||
depth: 1 | ||
submodule: recursive | ||
|
||
# Compile LuaLS | ||
- name: Compile LuaLS | ||
run: | | ||
cd lua-language-server | ||
bash make.sh | ||
echo "${{github.workspace}}/lua-language-server/bin/" >> $GITHUB_PATH | ||
# Run tests | ||
- name: Run tests | ||
run: | | ||
make test |