From 7a962102d2d59d8d99564a9201628bf662a5ec38 Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Tue, 11 Jan 2022 12:11:42 +0100 Subject: [PATCH] ci: add golangci-lint action --- .github/workflows/lint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..3838bbd3 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ +name: Lint + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + golangci: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: golangci-lint + uses: golangci/golangci-lint-action@v2 + with: + # Required: the version of golangci-lint is required and must + # be specified without a patch version: + # we always use the latest patch version. + version: v1.42 + args: --timeout=10m