From 1f4cec3420cfb197cb846d827303d124f25d85a6 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Fri, 10 Dec 2021 00:33:32 +0100 Subject: [PATCH] Put back GitHub workflow --- .github/workflows/luacheck.yml | 21 +++++++++++++++++++++ README.md | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/luacheck.yml diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 0000000..32ded65 --- /dev/null +++ b/.github/workflows/luacheck.yml @@ -0,0 +1,21 @@ +name: Luacheck + +on: [push, pull_request] + +jobs: + + luacheck: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup ‘lua’ + uses: leafo/gh-actions-lua@v8 + with: + luaVersion: 5.1 + - name: Setup ‘luarocks’ + uses: leafo/gh-actions-luarocks@v4 + - name: Setup ‘luacheck’ + run: luarocks install luacheck + - name: Run ‘luacheck’ linter + run: lua luacheck.lua . diff --git a/README.md b/README.md index 5e34ad2..9cab94a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![logo](https://user-images.githubusercontent.com/7883281/145490041-d91d6bd6-a654-438d-b208-4d5736845ab7.png) -[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs) [![GitHub Release](https://img.shields.io/github/release/minetest-mods/i3.svg?style=flat)]() [![ContentDB](https://content.minetest.net/packages/jp/i3/shields/downloads/)](https://content.minetest.net/packages/jp/i3/) [![PayPal](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.me/jpg84240) +[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs) [![GitHub Release](https://img.shields.io/github/release/minetest-mods/i3.svg?style=flat)]() ![workflow](https://github.com/minetest-mods/i3/actions/workflows/luacheck.yml/badge.svg) [![ContentDB](https://content.minetest.net/packages/jp/i3/shields/downloads/)](https://content.minetest.net/packages/jp/i3/) [![PayPal](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.me/jpg84240) #### **`i3`** is a next-generation inventory for Minetest.