Skip to content

Commit

Permalink
Move lint to seperate file, move setup go to another acition
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKalke committed May 7, 2024
1 parent 3010ed0 commit 62cf9c4
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 23 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Lint

on:
push:
branches: [ "main", "release-*" ]
pull_request:
paths-ignore:
- 'docs/**'
- 'examples/**'
types:
- opened
- reopened
- synchronize
- ready_for_review
- 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'

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'
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 62cf9c4

Please sign in to comment.