chore: only check new issues with Go linter (#10054)
This commit is contained in:
parent
5b1c9f3c4c
commit
00325f20c0
|
|
@ -0,0 +1,35 @@
|
||||||
|
name: golangci-lint
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
schedule:
|
||||||
|
# Trigger every day at 16:00 UTC
|
||||||
|
- cron: '0 16 * * *'
|
||||||
|
jobs:
|
||||||
|
golangci-pr:
|
||||||
|
if: github.ref != 'refs/heads/master'
|
||||||
|
name: lint-pr-changes
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: golangci-lint
|
||||||
|
uses: golangci/golangci-lint-action@v2
|
||||||
|
with:
|
||||||
|
version: v1.42.1
|
||||||
|
only-new-issues: true
|
||||||
|
golangci-master:
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
name: lint-master-all
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: golangci-lint
|
||||||
|
uses: golangci/golangci-lint-action@v2
|
||||||
|
with:
|
||||||
|
version: v1.42.1
|
||||||
|
only-new-issues: true
|
||||||
|
args: --issues-exit-code=0
|
||||||
|
|
@ -56,4 +56,3 @@ jobs:
|
||||||
LINTER_RULES_PATH: '.'
|
LINTER_RULES_PATH: '.'
|
||||||
MARKDOWN_CONFIG_FILE: .markdownlint.yml
|
MARKDOWN_CONFIG_FILE: .markdownlint.yml
|
||||||
VALIDATE_MARKDOWN: true
|
VALIDATE_MARKDOWN: true
|
||||||
VALIDATE_GO: true
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
[](https://circleci.com/gh/influxdata/telegraf) [](https://hub.docker.com/_/telegraf/)
|
[](https://circleci.com/gh/influxdata/telegraf) [](https://hub.docker.com/_/telegraf/)
|
||||||
[](https://www.influxdata.com/slack)
|
[](https://www.influxdata.com/slack)
|
||||||
[](https://github.com/marketplace/actions/super-linter)
|
|
||||||
|
|
||||||
Telegraf is an agent for collecting, processing, aggregating, and writing metrics. Based on a
|
Telegraf is an agent for collecting, processing, aggregating, and writing metrics. Based on a
|
||||||
plugin system to enable developers in the community to easily add support for additional
|
plugin system to enable developers in the community to easily add support for additional
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue