mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 13:07:36 +03:00
Use official golangci-lint GH action
This commit is contained in:
parent
70047fe20e
commit
5c9fdb064d
2 changed files with 6 additions and 9 deletions
13
.github/workflows/pipeline.yml
vendored
13
.github/workflows/pipeline.yml
vendored
|
@ -13,15 +13,12 @@ jobs:
|
||||||
name: Lint Server
|
name: Lint Server
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code into the Go module directory
|
- uses: actions/checkout@v2
|
||||||
uses: actions/checkout@v2
|
- name: golangci-lint
|
||||||
|
uses: golangci/golangci-lint-action@v0.1.7
|
||||||
- name: Run golangci-lint
|
|
||||||
uses: actions-contrib/golangci-lint@v1
|
|
||||||
with:
|
with:
|
||||||
golangci_lint_version: v1.25.0
|
version: v1.26
|
||||||
# TODO Enable github actions output format: https://github.com/actions-contrib/golangci-lint/issues/11
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# args: run --out-format github-actions
|
|
||||||
|
|
||||||
go:
|
go:
|
||||||
name: Test Server on ${{ matrix.os }}
|
name: Test Server on ${{ matrix.os }}
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -45,7 +45,7 @@ setup-dev: setup
|
||||||
@which ginkgo || (echo "Installing Ginkgo" && GO111MODULE=off go get -u github.com/onsi/ginkgo/ginkgo)
|
@which ginkgo || (echo "Installing Ginkgo" && GO111MODULE=off go get -u github.com/onsi/ginkgo/ginkgo)
|
||||||
@which goose || (echo "Installing Goose" && GO111MODULE=off go get -u github.com/pressly/goose/cmd/goose)
|
@which goose || (echo "Installing Goose" && GO111MODULE=off go get -u github.com/pressly/goose/cmd/goose)
|
||||||
@which reflex || (echo "Installing Reflex" && GO111MODULE=off go get -u github.com/cespare/reflex)
|
@which reflex || (echo "Installing Reflex" && GO111MODULE=off go get -u github.com/cespare/reflex)
|
||||||
@which golangci-lint || (echo "Installing GolangCI-Lint" && GO111MODULE=off go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.23.0)
|
@which golangci-lint || (echo "Installing GolangCI-Lint" && cd ..&& GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.26.0)
|
||||||
@which lefthook || (echo "Installing Lefthook" && GO111MODULE=off go get -u github.com/Arkweid/lefthook)
|
@which lefthook || (echo "Installing Lefthook" && GO111MODULE=off go get -u github.com/Arkweid/lefthook)
|
||||||
@lefthook install
|
@lefthook install
|
||||||
.PHONY: setup
|
.PHONY: setup
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue