mirror of
https://github.com/walles/moar.git
synced 2024-09-11 20:17:13 +03:00
Make sure golangci-lint can be found
This commit is contained in:
parent
b9ddbb82d5
commit
064fe61eaf
16
.github/workflows/linux-ci.yml
vendored
16
.github/workflows/linux-ci.yml
vendored
@ -9,12 +9,20 @@ jobs:
|
|||||||
validate:
|
validate:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
|
# golangci-lint is required by test.sh. Latest version here if you want
|
||||||
|
# to bump it, version number is at the end of the "curl | sh"
|
||||||
|
# commandline below:
|
||||||
|
# https://github.com/golangci/golangci-lint/releases/latest
|
||||||
- name: Install golangci-lint
|
- name: Install golangci-lint
|
||||||
# golangci-lint is required by test.sh. Latest version here if you want
|
|
||||||
# to bump it, version number is at the end of the "curl | sh"
|
|
||||||
# commandline below:
|
|
||||||
# https://github.com/golangci/golangci-lint/releases/latest
|
|
||||||
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)"/bin v1.50.1
|
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)"/bin v1.50.1
|
||||||
|
|
||||||
|
# Source: https://www.scivision.dev/github-actions-path-append/
|
||||||
|
#
|
||||||
|
# Required for the golangci-lint that we just installed to work.
|
||||||
|
- name: Add GOPATH/bin to PATH
|
||||||
|
run: echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- run: ./test.sh
|
- run: ./test.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user