mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-11-15 06:50:18 +01:00
28 lines
665 B
YAML
28 lines
665 B
YAML
name: build
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
|
|
- run: |
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -qqq luarocks
|
|
- name: Install pre-commit
|
|
|
|
- name: Install LuaCheck
|
|
run: luarocks install --local luacheck
|
|
|
|
- name: Run LuaCheck using pre-commit on moreblocks
|
|
run: |
|
|
pre-commit run --all-files
|
|
$HOME/.luarocks/bin/luacheck ./moreblocks
|
|
|
|
- name: Run LuaCheck using pre-commit on stairsplus
|
|
run: |
|
|
pre-commit run --all-files
|
|
$HOME/.luarocks/bin/luacheck ./stairsplus
|