ci: add golangci-lint, yamlllint and codespell#79
Conversation
fe354ec to
dae2e0e
Compare
youngnick
left a comment
There was a problem hiding this comment.
This is looking great, nice work @lianghao208!
|
@lianghao208 thanks again for the PR. When you have a moment, can you update the PR base on the feedback? |
@danehans I've already update the PR 2 days ago, and there seems to be some details haven't been confirmed yet. ping @arkodg |
|
@lianghao208 raised #90 to make a call on how we install tooling |
e2dbe1d to
e1684cd
Compare
|
In #90 (comment), we reached a consensus. Let's keep the |
|
xref #63 |
|
@lianghao208 #102 is now in, which should unblock this PR |
tools/codespell/Dockerfile.builder
Outdated
There was a problem hiding this comment.
you will need to install codespell and yamllint in tools/Dockerfile.builder
There was a problem hiding this comment.
@arkodg
Sorry for my miscomprehension, I thought the linters need to run as docker-in-docker(cause the tools/Dockerfile.builder only provides golang base image and has docker installed)
If we install codespell and yamllint in tools/Dockerfile.builder, does it mean we need a ubuntu base image instead of golang? (python is required for yamllint and codespell)
FROM golang:1.18.2 as builder > FROM ubuntu:focal as builder
There was a problem hiding this comment.
Refer to Istio: https://github.com/istio/tools/blob/master/docker/build-tools/Dockerfile
I made some changes.
da6e849 to
4d072de
Compare
|
@arkodg ps: I think each linter runs on separate containers saves much more time than running on single tools/Dockerfile.builder to set up environment step by step. But since istio and envoy are using this method, I guess this is a widely accepted approach. |
|
@lizan thoughts regarding #79 (comment)? |
74c2000 to
5fa4c7c
Compare
Signed-off-by: lianghao208 <roylizard3@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #79 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 5 5
=========================================
Hits 5 5 Continue to review full report at Codecov.
|
arkodg
left a comment
There was a problem hiding this comment.
LGTM, thanks for working through the review comments !
Signed-off-by: lianghao208 roylizard3@gmail.com
issue: #73