Run luacheck in pre-commit

master
Louis Royer 2022-06-21 21:39:29 +02:00
parent d8b4de1823
commit 43742d54a1
No known key found for this signature in database
GPG Key ID: DCDDAB6B0DB85D88
3 changed files with 5 additions and 23 deletions

View File

@ -1,22 +0,0 @@
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
luacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Luacheck linter
uses: lunarmodules/luacheck@v0

View File

@ -5,3 +5,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/lunarmodules/luacheck
rev: v0.26.1
hooks:
- id: luacheck

View File

@ -1,6 +1,6 @@
# Virtual key
![Build Status](https://github.com/louisroyer-minetest/virtual-key/actions/workflows/main.yml/badge.svg) [![ContentDB](https://content.minetest.net/packages/louisroyer/virtual_key/shields/title/)](https://content.minetest.net/packages/louisroyer/virtual_key/) [![ContentDB](https://content.minetest.net/packages/louisroyer/virtual_key/shields/downloads/)](https://content.minetest.net/packages/louisroyer/virtual_key/)
[![ContentDB](https://content.minetest.net/packages/louisroyer/virtual_key/shields/title/)](https://content.minetest.net/packages/louisroyer/virtual_key/) [![ContentDB](https://content.minetest.net/packages/louisroyer/virtual_key/shields/downloads/)](https://content.minetest.net/packages/louisroyer/virtual_key/)
This minetest mod add virtual keys you can add in your keyring.