Skip to content

Commit 3e801be

Browse files
TheiLLeniumStudiosMkeefeusAlfita2021swkeep
authored
chore(pipelines): Tekton CI pipeline for lint (#279)
* chore(pipelines): Tekton CI pipeline for lint * chore(pipelines): Fix pipeline taskRef * Change name for the pipelinerun * Add secret to clone repo * Run as 0 * Use specific hash for arm64 image * Fix hash for lua lint action * Change image * feat(ui/radial): Add support for ox_lib radial menu (#268) Co-authored-by: iLLeniumStudios <104288623+TheiLLeniumStudios@users.noreply.github.com> * fix(framework/esx): Fix loadout bug (#271) Co-authored-by: iLLeniumStudios <104288623+TheiLLeniumStudios@users.noreply.github.com> * fix(cache): Set ped cache after SetPlayerPed (#292) * fix(locales): Typo in locale keys * fix(player): Armour not restoring properly * fix(cache/ped): Wait 150ms instead of setting ped cache manually * fix(playeroutfitrooms): Invalid reference to the target ped (#293) * feat(tattoos): Tattoos for Build 2802 * fix(ui): Radial menu shirt icon * fix(radialmenu): Radialmenu option not showing up for clothing rooms and player outfit rooms * feat(target): usePoly usage for targets (#295) * chore(release): Remove .tekton from release zip * feat(management/qbox): qbx-management support for BossManagedOutfits (#296) * refactor(radialmenu): Move logic to separate files for each framework (#297) * refactor(radialmenu): Move to logic separate files for each framework * refactor(client): Remove unused variable * refactor(client): Move logic to separate lua files (#300) * fix(radial): Remove check to not have redudant if statements in zones * fix(management): Nil value for args * fix(radial): qb and qbx compatibility issues * fix(esx): Loadout issue on load * fix(esx): Only restore loadout if exists * fix(outfits): Accessories disappearance (#307) * refactor: remove duplicate code * fix(outfits): Prevent disappearance of accessories fix(outfits): Prevent disappearance of accessories refactor(outfits/config): add TrackerClothingOptions * refactor(outfits/config): remove redundant passing TrackerClothingOptions to UI * refactor(config): rename item to drawable * chore: change bag to default value * Add path to workspace * Add dummy * Remove lint action * Enable fail on warnings * Disable colorized output * Remove dummy variable --------- Co-authored-by: Malcolm Keefe <27903055+Mkeefeus@users.noreply.github.com> Co-authored-by: AlfaRP <88886043+Alfita2021@users.noreply.github.com> Co-authored-by: swkeep <49286776+swkeep@users.noreply.github.com>
1 parent 86b7dad commit 3e801be

File tree

3 files changed

+73
-25
lines changed

3 files changed

+73
-25
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.tekton/lint.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
apiVersion: tekton.dev/v1beta1
3+
kind: PipelineRun
4+
metadata:
5+
name: illenium-appearance-lint
6+
annotations:
7+
pipelinesascode.tekton.dev/on-event: "[push, pull_request, pull_request_target]"
8+
pipelinesascode.tekton.dev/on-target-branch: "[main]"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
pipelinesascode.tekton.dev/task: "[git-clone]"
11+
pipelinesascode.tekton.dev/task-1: ".tekton/tasks/fivem-lua-lint.yaml"
12+
spec:
13+
podTemplate:
14+
securityContext:
15+
fsGroup: 0
16+
params:
17+
- name: repo_url
18+
value: "{{repo_url}}"
19+
- name: revision
20+
value: "{{revision}}"
21+
pipelineSpec:
22+
params:
23+
- name: repo_url
24+
- name: revision
25+
tasks:
26+
- name: fetch-repo
27+
params:
28+
- name: url
29+
value: $(params.repo_url)
30+
- name: revision
31+
value: $(params.revision)
32+
taskRef:
33+
name: git-clone
34+
workspaces:
35+
- name: output
36+
workspace: source
37+
secret:
38+
secretName: "{{ git_auth_secret }}"
39+
- name: run-lint
40+
runAfter:
41+
- fetch-repo
42+
taskRef:
43+
name: fivem-lua-lint
44+
params:
45+
- name: capture
46+
value: junit.xml
47+
- name: args
48+
value: -t --formatter JUnit --no-color
49+
- name: extra_libs
50+
value: mysql+polyzone+ox_lib
51+
- name: paths
52+
value: $(workspaces.source.path)
53+
- name: fail_on_warnings
54+
value: "true"
55+
workspaces:
56+
- name: source
57+
workspace: source
58+
workspaces:
59+
- name: source
60+
workspaces:
61+
- name: source
62+
volumeClaimTemplate:
63+
spec:
64+
accessModes:
65+
- ReadWriteOnce
66+
resources:
67+
requests:
68+
storage: 1Gi

.tekton/tasks/fivem-lua-lint.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,20 @@ spec:
2727
- name: capture
2828
description: capture output into a file
2929
default: ""
30+
- name: fail_on_warnings
31+
description: should fail on luacheck warnings?
32+
default: "false"
3033
- name: extra_libs
3134
description: extra definitions to use, in the format of a+b+c
3235
default: ""
3336
steps:
3437
- name: lint
35-
image: ghcr.io/illeniumstudios/fivem-lua-lint-action:v2.0.0
38+
image: ghcr.io/illeniumstudios/fivem-lua-lint-action:v2.1.0
3639
workingDir: $(workspaces.source.path)
3740
args:
3841
- $(params.args)
3942
- $(params.paths)
4043
- $(params.config_path)
4144
- $(params.capture)
45+
- $(params.fail_on_warnings)
4246
- $(params.extra_libs)

0 commit comments

Comments
 (0)