mirror of
https://github.com/minetest-mods/moreores.git
synced 2025-07-02 08:00:32 +02:00
Replace Travis CI with GitHub Actions (#51)
This commit is contained in:
24
.github/workflows/build.yml
vendored
Normal file
24
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: build
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
|
||||
- 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 .
|
Reference in New Issue
Block a user