Update CI workflow to use Lua 5.3 and install Lua header files #5
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Lua header files | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y lua5.3-dev | |
- name: Install Luarocks | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y luarocks lua5.3 | |
sudo luarocks --lua-version=5.3 install luarocks | |
- name: Install Stylua | |
run: | | |
sudo luarocks --lua-version=5.3 install stylua | |
- name: Run Stylua | |
run: | | |
stylua --config-path .stylua.toml . --exclude lib/cc-tweaked | |
static-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Lua header files | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y lua5.3-dev | |
- name: Install Luarocks | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y luarocks lua5.3 | |
sudo luarocks --lua-version=5.3 install luarocks | |
- name: Install Lua-Language-Server | |
run: | | |
sudo luarocks --lua-version=5.3 install lua-language-server | |
- name: Run Lua-Language-Server | |
continue-on-error: true | |
run: | | |
lua-language-server --logpath . --check . | |
- name: Parse Lua-Language-Server Output | |
run: | | |
lua parse_lua_ls_output.lua ./check.json |