-
Notifications
You must be signed in to change notification settings - Fork 10
71 lines (71 loc) · 2.01 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
name: Linters
on: # yamllint disable-line rule:truthy
pull_request:
branches: ['main']
types: ['opened', 'reopened', 'synchronize']
workflow_dispatch:
env:
TKN_CLI_VERSION: 0.30.1
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run yamllint
uses: frenck/action-yamllint@v1
with:
path: internal-services/catalog/
tknparse:
runs-on: ubuntu-latest
steps:
- name: checkout files
uses: actions/checkout@v4
- name: Install tkn cli
uses: jerop/[email protected]
with:
version: v${TKN_CLI_VERSION}
- name: Get changed files
uses: tj-actions/changed-files@v41
id: changed-files
with:
files: |
internal-services/catalog/*.yaml
- name: Run tkn util
run: .github/scripts/tkn_check_parse.sh
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_REFNAME: ${{ github.ref_name }}
gitlint:
name: Run gitlint checks
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Install gitlint into container
run: |
python3 -m venv venv
source venv/bin/activate
python3 -m pip install gitlint
- name: Run gitlint check
run: |
source venv/bin/activate
gitlint --commits origin/${{ github.event.pull_request.base.ref }}..HEAD
checkton:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
# Differential Checkton requires full git history
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Checkton
id: checkton
uses: chmeliik/[email protected] # Migrating to the konflux-ci org
with:
fail-on-findings: true
find-copies-harder: true