zuul-jobs/roles/ensure-golangci-lint/tasks/main.yaml
Mohammed Naser 23236c12fa golangci-lint: add job
This patch adds a roles and jobs to run golangci-lint against a
a Golang project.  It's a very popular tool for linting go code.

It also adds a simple framework which allows us to create dynamic
tests for file comments by defining a simple YAML file.

Change-Id: Ic8358541adaf7c3279383f0279cd3da7b446a6e0
2020-04-01 17:30:55 -04:00

10 lines
314 B
YAML

---
- name: Install golangci-lint
become: true
unarchive:
remote_src: true
src: "https://github.com/golangci/golangci-lint/releases/download/v{{ golangci_lint_version }}/golangci-lint-{{ golangci_lint_version }}-linux-amd64.tar.gz"
dest: /usr/local/bin
extra_opts:
- --strip-components=1