Add luacheck CI

master
Olivier Dragon 2022-03-24 16:24:49 -04:00
parent a1a4949751
commit 97a4f2bee5
2 changed files with 54 additions and 0 deletions

52
.github/workflows/luacheck.yml vendored Normal file
View File

@ -0,0 +1,52 @@
# This is a basic workflow to help you get started with Actions
name: luacheck
# 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:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: luacheck
# You may pin to the exact commit or the version.
# uses: nebularg/actions-luacheck@86af42dcf465915896671903fcdec3e01a492e87
uses: nebularg/actions-luacheck@v1.1.0
#with:
# A list of files, rockspecs, or directories to be checked.
# Defaults to the workspace path as set by the `path` input.
#files: # optional, default is .
# The working directory for luacheck.
# The file list should be relative to this path and output filenames be displayed relative to this path.
# Defaults to the workspace path.
#path: # optional, default is ${{ github.workspace }}
# Additional command-line arguments.
# See https://luacheck.readthedocs.io/en/stable/cli.html
#args: # optional
# URL to a custom configuration (`.luacheckrc`) file that will be used as the default configuration file.
#config: # optional
# Emits annotations for source code at locations parsed from the output. Must be set to "none", "warning" or "error".
# Requires that output of warnings not be suppressed through the -qq or -qqq arguments.
#annotate: # optional, default is none

View File

@ -1,3 +1,5 @@
![luacheck](https://github.com/dacmot/maple/actions/workflows/luacheck.yml/badge.svg)
# Maple
Maple Tree for Minetest by ExeterDad