Skip to content

Commit

Permalink
Factor out linting (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat authored Apr 20, 2022
1 parent 6ec72ea commit bd1e7b3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Install GolangCI-Lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2
- name: Test with coverage
run: make cover
- name: Upload code coverage to codecov
if: matrix.go == '1.18'
uses: codecov/codecov-action@v1
with:
file: ./coverage.out
- run: make lint
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: lint
on: [push]
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
check-latest: true
- uses: golangci/golangci-lint-action@v2
with:
version: v1.45.2
- name: Run go vet
run: |
go vet ./...

0 comments on commit bd1e7b3

Please sign in to comment.