Skip to content

chore(ci): update lint #2

chore(ci): update lint

chore(ci): update lint #2

Workflow file for this run

name: Lint
on:
push:
branches:
- main
paths:
- "Taskfile.dist.yaml"
- ".github/**"
- "docs/**"
- "client/**"
- "e2e/**"
- "server/**"
pull_request:
repository_dispatch:
types: ["Lint"]
workflow_dispatch:
jobs:
prettier:
uses: werf/common-ci/.github/workflows/lint.yml@chore/ci/lint
install-golangci-lint:
name: install-golangci-lint
runs-on: ubuntu-latest
steps:
- 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
golangci-lint:
needs: install-golangci-lint
name: golangci-lint
runs-on: ubuntu-latest
env:
GOFLAGS: -mod=readonly
strategy:
max-parallel: 6
fail-fast: false
matrix:
directory: ["client", "server", "e2e"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: ${{ matrix.directory }}/go.mod
- name: Lint
working-directory: ${{ matrix.directory }}
run: make lint