-
Notifications
You must be signed in to change notification settings - Fork 710
53 lines (49 loc) · 1.33 KB
/
linters.yml
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
# Copyright 2022-2024 the Kubeapps contributors.
# SPDX-License-Identifier: Apache-2.0
---
on:
workflow_call:
inputs:
golang_version:
type: string
required: false
default: "1.23"
golangci_lint_version:
type: string
required: false
default: "1.61.0"
jobs:
yaml-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
config_file: .yamllint.yml
- run: echo ${{ steps.yaml-lint.outputs.logfile }}
- uses: actions/upload-artifact@v4
if: failure()
with:
name: yamllint-logfile
path: ${{ steps.yaml-lint.outputs.logfile }}
golang-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: ${{ inputs.golang_version }}
- uses: actions/checkout@v4
- uses: golangci/golangci-lint-action@v6
with:
version: ${{ inputs.golangci_lint_version }}
args: --timeout=10m
license-headers-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: ${{ inputs.golang_version }}
- uses: actions/checkout@v4
- name: Check license Headers
uses: apache/skywalking-eyes/header@v0.6.0