Skip to content

Commit

Permalink
Add CI configuration file
Browse files Browse the repository at this point in the history
* Add step to install `luarocks` using `sudo apt-get install -y luarocks`
* Replace `sudo apt-get install -y stylua` with `sudo luarocks install stylua`
* Replace `sudo apt-get install -y lua-language-server` with `sudo luarocks install lua-language-server`
  • Loading branch information
jiriks74 committed Oct 24, 2024
1 parent 09d8a57 commit 5c3613b
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on: [push, pull_request]

jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Luarocks
run: |
sudo apt-get update
sudo apt-get install -y luarocks
- name: Install Stylua
run: |
sudo luarocks 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 Luarocks
run: |
sudo apt-get update
sudo apt-get install -y luarocks
- name: Install Lua-Language-Server
run: |
sudo luarocks 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

0 comments on commit 5c3613b

Please sign in to comment.