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

Add Golang-CI and refactor integration tests #228

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

MDr164
Copy link
Collaborator

@MDr164 MDr164 commented Nov 5, 2021

In addition to CircleCI I added the golangci-linter via github actions. The integration tests run by CircleCI are disabled for now as I still need to rewrite the uninit scripts that are being run but as the code is still evolving quickly right now this will happen after the big refactor is done. The CI also now uses the new way of generating a config file which removes the need of shell scripts in the repo.

Now that a lot of things in the build process of a
u-bmc image has changed the integration tests needed
to be modified to account for these changes.
They still got a few issues but the general layout should
be final now.

Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
Replace the shell scripts with a generate.go file
that uses templating and go embed to fill in the
variables that are needed in config.go

This approach is not ideal yet, as we track
the generated.go file for golangci purposes.

Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
Removed old rm -rf vendor command from test tasks
and specified the directories with go sources
which should be tested instead of going wildcard.
Also update the CircleCI config in order to reflect
the new project config logic.

Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
Remove unnecessary comments from the yaml files
and update golangci to 1.42.1
Additionally remove generated.go as it should not be
tracked via git and add a new step to golang-ci
to generate this file

Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
@MDr164 MDr164 marked this pull request as ready for review November 5, 2021 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant