Skip to content

chore: some updates #52

chore: some updates

chore: some updates #52

Workflow file for this run

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