Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial golang tasks #43

Merged
merged 1 commit into from
Jun 11, 2019
Merged

Conversation

vdemeester
Copy link
Member

@vdemeester vdemeester commented Jun 5, 2019

Changes

Related to tektoncd/pipeline#954 and tektoncd/pipeline#949, this provides initial Tasks for Golang.

This adds initial golang tasks : build (golang-build), tests (golang-tests) and linting (golangci-lint, using golangci-lint).

Improvements (todos):

Closes tektoncd/pipeline#532
Closes tektoncd/pipeline#558

/cc @chmouel @bobcatfish

Signed-off-by: Vincent Demeester [email protected]

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide
for more details.

This adds initial golang tasks : build (`golang-build`),
tests (`golang-tests`) and linting (`golangci-lint`, using
golangci-lint).

Signed-off-by: Vincent Demeester <[email protected]>
@tekton-robot tekton-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 5, 2019
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 5, 2019
@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 5, 2019
Copy link
Member

@imjasonh imjasonh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

targetPath: src/${inputs.params.package}
steps:
- name: lint
image: golangci/golangci-lint:${inputs.params.version}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think there's any benefit in having the default include the :, which would allow users to request a version by digest (version: @sha256:...) or specify "" to get :latest (less useful)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, very good point ! I think it make sense indeed 👼

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping, still see version's default without the :

This'll also need an update to _default:_s in README.md

golang/lint.yaml Show resolved Hide resolved
golang/build.yaml Show resolved Hide resolved
@vdemeester vdemeester changed the title wip: Initial golang tasks Initial golang tasks Jun 7, 2019
@tekton-robot tekton-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 7, 2019
@vdemeester
Copy link
Member Author

(I've removed wip as I think we can merge as is more or less, create issues for follow-ups and iterate over it 👼)

@vdemeester vdemeester added this to the Pipelines 0.5 🐱 milestone Jun 7, 2019
@dlorenc
Copy link
Contributor

dlorenc commented Jun 10, 2019

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 10, 2019
@vdemeester
Copy link
Member Author

/test pull-tekton-catalog-integration-tests

@tekton-robot tekton-robot merged commit 9916454 into tektoncd:master Jun 11, 2019
@vdemeester vdemeester deleted the golang-tasks branch June 11, 2019 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Task for running linting (markdownlint, …) Create Task for Tekton Pipeline unit tests
5 participants