Skip to content

Commit

Permalink
Mute linting errors when running against master branch (influxdata#8977)
Browse files Browse the repository at this point in the history
* Mute errors when running on master branch

* One config, with conditional statement

* improve names
  • Loading branch information
sspaink authored Mar 11, 2021
1 parent b263c1f commit 21ca31c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:
- cron: '0 16 * * *'
jobs:
golangci-pr:
name: lint
if: github.ref != 'refs/heads/master'
name: lint-pr-changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -21,3 +22,15 @@ jobs:
version: v1.38
only-new-issues: true
args: --timeout=5m0s
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.38
only-new-issues: true
args: --timeout=5m0s --issues-exit-code=0

0 comments on commit 21ca31c

Please sign in to comment.