diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yml similarity index 70% rename from .github/workflows/lint.yaml rename to .github/workflows/lint.yml index 5d171922..7e79e563 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yml @@ -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: @@ -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