Skip to content

Commit

Permalink
Add tekton task for fivem-lua-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios committed Mar 31, 2023
1 parent 29bbd50 commit 4358219
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .tekton/tasks/fivem-lua-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: fivem-lua-lint
labels:
app.kubernetes.io/version: "0.1"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: fivem, lua, lint
tekton.dev/displayName: "FiveM Lua Lint"
spec:
description: >-
FiveM Lua Lint checks for linting errors in FiveM resource files.
workspaces:
- name: source
mountPath: /workspace
params:
- name: args
description: luacheck arguments to pass
default: "-t"
- name: paths
description: the path name to lint lua in
default: "."
- name: config_path
description: Config file path
default: /luacheck-fivem/.luacheckrc.default
- name: capture
description: capture output into a file
default: ""
- name: extra_libs
description: extra definitions to use, in the format of a+b+c
default: ""
steps:
- name: lint
image: ghcr.io/illeniumstudios/fivem-lua-lint-action:v2.0.0
workingDir: $(workspaces.source.path)
args:
- $(params.args)
- $(params.paths)
- $(params.config_path)
- $(params.capture)
- $(params.extra_libs)

0 comments on commit 4358219

Please sign in to comment.