mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-11-10 20:30:33 +01:00
25 lines
550 B
YAML
25 lines
550 B
YAML
|
name: build
|
||
|
on: [push, pull_request]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@master
|
||
|
- uses: actions/setup-python@master
|
||
|
|
||
|
- run: |
|
||
|
sudo apt-get update -qq
|
||
|
sudo apt-get install -qqq luarocks
|
||
|
- name: Install pre-commit
|
||
|
run: pip3 install pre-commit
|
||
|
|
||
|
- name: Install LuaCheck
|
||
|
run: luarocks install --local luacheck
|
||
|
|
||
|
- name: Run LuaCheck using pre-commit
|
||
|
run: |
|
||
|
pre-commit run --all-files
|
||
|
$HOME/.luarocks/bin/luacheck .
|