diff options
author | Sean Stiglitz <sean.stiglitz@gmail.com> | 2020-11-15 12:22:49 -0800 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-16 10:02:57 +1100 |
commit | 62b200a4be00c023e02aee94091bc898568557a5 (patch) | |
tree | a832ff2d839a7a3610a4d59acdc4dffccc65609f /.github | |
parent | f7bab5fdc0f0ab9941c4773ac75ab9dcbbb494b9 (diff) |
Add GolangCI action.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 35 |
1 files changed, 35 insertions, 0 deletions
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 |