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 GHA workflows to build and lint the cmapisrv-mock #85

Merged
merged 7 commits into from
Jun 27, 2024

Conversation

giorio94
Copy link
Member

No description provided.

@giorio94 giorio94 force-pushed the pr/giorio94/github-workflows branch 6 times, most recently from 129e845 to f100dff Compare June 26, 2024 13:05
giorio94 added 5 commits June 26, 2024 15:59
Addressed the following two deprecation warnings reported by
golangci-lint:

WARN [config_reader] The configuration option `linters.staticcheck.go` is deprecated, please use global `run.go`.
WARN [lintersdb] The name "goerr113" is deprecated. The linter has been renamed to: err113.

Signed-off-by: Marco Iorio <[email protected]>
Apparently, these two vendored files do originally use CRLF line ending,
but got committed using the LF line ending. This causes the new lint
workflow to fail due to the difference introduced when running go mod
vendor. Let's fix this by committing them with the CRLF line ending.

Signed-off-by: Marco Iorio <[email protected]>
As they need to be executed independently of whether a file with the
same name already exists or not.

Signed-off-by: Marco Iorio <[email protected]>
Currently, the cmapisrv-mock does not include unit tests, hence this is
effectively a no-op. Yet, if added, they should be run in a separate
workflow, to not impact the image build task.

Signed-off-by: Marco Iorio <[email protected]>
@giorio94 giorio94 force-pushed the pr/giorio94/github-workflows branch from f100dff to 22da222 Compare June 26, 2024 13:59
.github/workflows/build.yaml Outdated Show resolved Hide resolved
.github/workflows/build.yaml Outdated Show resolved Hide resolved
@giorio94 giorio94 force-pushed the pr/giorio94/github-workflows branch from 22da222 to 320ec5a Compare June 26, 2024 14:12
@giorio94
Copy link
Member Author

@giorio94 giorio94 force-pushed the pr/giorio94/github-workflows branch from 320ec5a to a0f6a86 Compare June 26, 2024 14:26
@giorio94 giorio94 marked this pull request as ready for review June 26, 2024 14:26
@giorio94 giorio94 requested a review from aanm June 26, 2024 14:26
@aanm aanm merged commit 943b27c into main Jun 27, 2024
2 checks passed
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.

2 participants