moreblocks/.github/workflows/build.yml

25 lines
556 B
YAML
Raw Normal View History

name: build
2022-06-12 03:17:41 +02:00
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@master
- run: |
2022-06-12 03:17:41 +02:00
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: |
2022-06-12 03:17:41 +02:00
pre-commit run --all-files
$HOME/.luarocks/bin/luacheck .