Skip to content

Commit

Permalink
change(ci): golangci-lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
l3uddz committed Jun 14, 2020
1 parent aa69577 commit 56ae791
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ jobs:
with:
go-version: 1.14

# lint
- name: lint
run: |
make lint
- name: go_version
run: go version

# test
- name: test
run: |
make test
# - name: test
# run: |
# make test

# cache
- name: cache
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: golangci-lint
on:
push:
branches:
- master
- develop
tags:
- 'v*'
pull_request:
branches:
- master
- develop

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v1
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.27

# Optional: golangci-lint command line arguments.
# args:

0 comments on commit 56ae791

Please sign in to comment.