Skip to content

chore(ci): update lint #6

chore(ci): update lint

chore(ci): update lint #6

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
golangci-lint:
name: 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: 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
notification:
needs:
- prettier
- golangci-lint
name: Notification
if: always()
uses: werf/common-ci/.github/workflows/notification.yml@main
secrets:
loopNotificationGroup: ${{ secrets.LOOP_NOTIFICATION_GROUP }}
webhook: ${{ secrets.LOOP_NOTIFICATION_WEBHOOK }}
notificationChannel: ${{ secrets.LOOP_NOTIFICATION_CHANNEL }}