Skip to content

Commit 8ed57c0

Browse files
committed
refactor: streamline linting process in GitHub Actions and Taskfile
1 parent 0ef501e commit 8ed57c0

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/lint.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ on:
55
paths:
66
- "templates/**.yaml"
77
- "templates/**.yml"
8-
- "templates/**/kustomization.yaml"
98
push:
109
paths:
1110
- "templates/**.yaml"
1211
- "templates/**.yml"
13-
- "templates/**/kustomization.yaml"
1412

1513
jobs:
1614
lint:
@@ -24,8 +22,11 @@ jobs:
2422
with:
2523
python-version: "3.x"
2624

27-
- name: Install yamllint
28-
run: pip install yamllint
25+
- name: Install Task
26+
uses: arduino/setup-task@v2
27+
with:
28+
version: 3.x
29+
repo-token: ${{ secrets.GITHUB_TOKEN }}
2930

30-
- name: Lint YAML files
31-
run: yamllint templates/
31+
- name: Run lint task
32+
run: task lint

Taskfile.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ tasks:
1717
--file .out \
1818
--settings settings.yaml \
1919
component-constructor.yaml
20+
lint:
21+
desc: Lint YAML files in templates directory
22+
cmds:
23+
- yamllint templates
2024

2125
push:
2226
desc: Push to OCM Registry

0 commit comments

Comments
 (0)