commit d261251baa035cf2c5b8b9e6a8b255471b6a853c parent 2006112faf9aadf167b9b37fcb06974e5588105d Author: Brian C. Lane <bcl@brianlane.com> Date: Sat, 7 Mar 2020 09:34:55 -0800 Add golangci-lint workflow Diffstat:
A | .github/workflows/lint.yml | | | 21 | +++++++++++++++++++++ |
1 file changed, 21 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml @@ -0,0 +1,21 @@ +name: Lint +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] +jobs: + test: + name: Run golangci-lint + runs-on: ubuntu-latest + steps: + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: '1.14' + - name: Check out code + uses: actions/checkout@v2 + - name: Install golangci-lint + run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.23.7 + - name: Run golangci-lint + run: $(go env GOPATH)/bin/golangci-lint run