Skip to content

Commit

Permalink
Move lint to separate file (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKalke authored May 7, 2024
1 parent 3010ed0 commit 809eba1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 23 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Lint test

on:
pull_request:
paths:
- 'components/operator/**'
- 'components/serverless/**'
- '.github/**'
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@v3
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@v3
with:
version: latest
working-directory: 'components/serverless'
11 changes: 0 additions & 11 deletions .github/workflows/operator-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ on:
- converted_to_draft

jobs:
operator-lint:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: 'components/operator'

operator-unit-tests:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/serverless-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ on:
- converted_to_draft

jobs:
serverless-lint:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- uses: ./.github/actions/setup-libgit2
- uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: 'components/serverless'

serverless-unit-tests:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 809eba1

Please sign in to comment.