Skip to content

Move lint to separate file #1

Move lint to separate file

Move lint to separate file #1

Workflow file for this run

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'