2020-10-02 11:21:10 +02:00
|
|
|
name: build
|
2022-06-12 03:17:41 +02:00
|
|
|
on: [ push, pull_request ]
|
2020-10-02 11:21:10 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
|
|
|
|
- run: |
|
2022-06-12 03:17:41 +02:00
|
|
|
sudo apt-get update -qq
|
|
|
|
sudo apt-get install -qqq luarocks
|
2020-10-02 11:21:10 +02:00
|
|
|
- name: Install pre-commit
|
|
|
|
|
|
|
|
- name: Install LuaCheck
|
|
|
|
run: luarocks install --local luacheck
|
|
|
|
|
2022-06-12 03:49:53 +02:00
|
|
|
- name: Run LuaCheck using pre-commit on moreblocks
|
2020-10-02 11:21:10 +02:00
|
|
|
run: |
|
2022-06-12 03:17:41 +02:00
|
|
|
pre-commit run --all-files
|
2022-06-12 03:49:53 +02:00
|
|
|
$HOME/.luarocks/bin/luacheck ./moreblocks
|
|
|
|
|
|
|
|
- name: Run LuaCheck using pre-commit on stairsplus
|
|
|
|
run: |
|
|
|
|
pre-commit run --all-files
|
|
|
|
$HOME/.luarocks/bin/luacheck ./stairsplus
|