generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 19
38 lines (34 loc) · 1.15 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
name: lint
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review, converted_to_draft]
jobs:
operator-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299
with:
version: latest
working-directory: 'components/operator'
serverless-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- uses: ./.github/actions/setup-libgit2
- uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299
with:
version: latest
working-directory: 'components/serverless'
# TODO: uncomment when buildless-serverless is ready
# buildless-serverless-lint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: ./.github/actions/setup-go
# - uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299
# with:
# version: latest
# working-directory: 'components/buildless-serverless'