Skip to content

Commit

Permalink
Move golangci-lint from circle-ci to github actions (influxdata#8975)
Browse files Browse the repository at this point in the history
* Move lint to github actions

* Update version

* timeout and scheduled trigger
  • Loading branch information
sspaink authored Mar 11, 2021
1 parent 1b7a52d commit 1d8a650
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@ commands:
paths:
- 'dist'
jobs:
linter:
executor: go-1_16
steps:
- checkout
- restore_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
- run: wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0
- run: make lint
deps:
executor: go-1_16
steps:
Expand Down Expand Up @@ -209,7 +201,6 @@ workflows:
version: 2
check:
jobs:
- 'linter'
- 'macdeps':
filters:
tags:
Expand Down Expand Up @@ -287,7 +278,6 @@ workflows:
only: /.*/
nightly:
jobs:
- 'linter'
- 'deps'
- 'macdeps'
- 'test-go-1_15':
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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:
name: lint
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

0 comments on commit 1d8a650

Please sign in to comment.