Skip to content

Commit

Permalink
Merge pull request #3 from sg0hsmt/update-github-actions
Browse files Browse the repository at this point in the history
Update GitHub actions
  • Loading branch information
sg0hsmt committed May 23, 2020
2 parents 60f9761 + 029ee57 commit 03ae4c2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
on: [push, pull_request]
name: golangci-lint
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v1
with:
version: v1.27
8 changes: 1 addition & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
Expand All @@ -23,9 +23,3 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: go${{ matrix.go-version }}, ${{ matrix.platform }}
- name: Run golangci-lint
if: runner.os == 'Linux' && matrix['go-version'] == '1.14.x'
shell: bash
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.23.7
./bin/golangci-lint run
3 changes: 2 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ issues:
- path: _test\.go
linters:
- funlen
- gomnd
- gocognit
- goerr113
- gomnd
- scopelint
- path: doc_test\.go
linters:
Expand Down

0 comments on commit 03ae4c2

Please sign in to comment.