Skip to content

Commit

Permalink
ci: add golangci-lint (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregie authored May 8, 2021
1 parent 3167953 commit 9317acf
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: golangci-lint

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup go
uses: actions/setup-go@v1
with:
go-version: '1.13'

- name: Download golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.39.0

- name: 🛩️ golangci-lint
run: $(go env GOPATH)/bin/golangci-lint run --tests=false --timeout 300s ./...

0 comments on commit 9317acf

Please sign in to comment.