chore: some updates #52
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: "lua: linting and style checking" | |
on: [push, pull_request] | |
jobs: | |
luacheck: | |
name: luacheck on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Prepare | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo add-apt-repository universe | |
sudo apt install luarocks -y | |
sudo luarocks install luacheck | |
- name: Prepare | |
if: matrix.os == 'macOS-latest' | |
run: | | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install luarocks | |
luarocks install luacheck | |
- name: Run luacheck | |
run: luacheck init.lua lua |