From 62b200a4be00c023e02aee94091bc898568557a5 Mon Sep 17 00:00:00 2001 From: Sean Stiglitz Date: Sun, 15 Nov 2020 12:22:49 -0800 Subject: Add GolangCI action. --- .github/workflows/lint.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/lint.yml (limited to '.github') diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..0737f9d38 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,35 @@ +name: golangci-lint +on: + pull_request: + types: + - labeled + - unlabeled + - synchronize + - opened + - edited + - ready_for_review + - reopened + - unlocked + pull_request_review: + types: + - submitted + check_suite: + types: + - completed + status: {} +jobs: + golangci: + strategy: + matrix: + go-version: + - 1.14.x + os: + - ubuntu-latest + name: lint + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - name: golangci-lint + uses: golangci/golangci-lint-action@v2 + with: + version: v1.29 -- cgit v1.2.3