mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-08 15:28:46 +00:00
33 lines
659 B
YAML
33 lines
659 B
YAML
name: linter
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- ready_for_review
|
|
branches:
|
|
- "main"
|
|
paths:
|
|
- '**.go'
|
|
- 'go.*'
|
|
- '.github/workflows/lint.yml'
|
|
- '.golangci.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
golangci-lint:
|
|
if: github.event.pull_request.draft == false
|
|
name: runner / golangci-lint
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: golangci-lint
|
|
uses: reviewdog/action-golangci-lint@v2
|
|
with:
|
|
tool_name: golangci-lint
|