Skip to content

Commit

Permalink
chore(ci): update lint
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Frolov <[email protected]>
  • Loading branch information
Fral738 committed Dec 25, 2024
1 parent ee90ec9 commit 5935310
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/lint.yaml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
name: Lint
on:
push:
branches:
- main
paths:
- "**/*.go"
- "Taskfile.dist.yaml"
- ".github/**"
- "docs/**"
- "client/**"
- "e2e/**"
- "server/**"
pull_request:
repository_dispatch:
types: ["Lint"]
workflow_dispatch:

jobs:
lint:
prettier:
uses: werf/common-ci/.github/workflows/lint.yml@chore/ci/lint

golangci-lint:
name: Lint
runs-on: ubuntu-latest
env:
Expand All @@ -25,19 +38,9 @@ jobs:
with:
go-version-file: ${{ matrix.directory }}/go.mod

- name: Install Task
uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install prettier
run: task -p deps:install:prettier

- name: Lint
run: task -p lint

- name: Install linter
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.1

- name: Lint
working-directory: ${{ matrix.directory }}
run: make lint

0 comments on commit 5935310

Please sign in to comment.