Skip to content

Add minimal CI tests#84

Merged
simondeziel merged 7 commits into
canonical:mainfrom
simondeziel:ci
Feb 2, 2024
Merged

Add minimal CI tests#84
simondeziel merged 7 commits into
canonical:mainfrom
simondeziel:ci

Conversation

@simondeziel
Copy link
Copy Markdown
Member

@simondeziel simondeziel commented Feb 2, 2024

@masnax I made the needed changes to please golangci-lint but revive was too much so I made the check-static warn instead of hard failing for now.

I looked at building it but it wants lxd-generate and I couldn't quickly find where to pull it from. Something for a future PR :)

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
@masnax
Copy link
Copy Markdown
Contributor

masnax commented Feb 2, 2024

Its asking for lxd-generate because the makefile defaults to updating the schema, there's no build directive. You want the makefile in the example package, or make -C example from the top level.

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
@simondeziel
Copy link
Copy Markdown
Member Author

@masnax OK, thanks I've added the corresponding make -C example calls to the tests job.

Copy link
Copy Markdown
Contributor

@masnax masnax left a comment

Choose a reason for hiding this comment

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

LGTM, though did we always have those github actions errors about package comments? I don't believe any of our projects have strictly required package comments.

@simondeziel
Copy link
Copy Markdown
Member Author

AFAIK, revive isn't used much elsewhere.

@simondeziel simondeziel merged commit 96d6a37 into canonical:main Feb 2, 2024
@simondeziel simondeziel deleted the ci branch February 2, 2024 18:46
masnax pushed a commit to masnax/microcluster that referenced this pull request Dec 10, 2024
Add minimal CI tests

(cherry picked from commit 96d6a37)
masnax pushed a commit to masnax/microcluster that referenced this pull request Dec 10, 2024
Add minimal CI tests

(cherry picked from commit 96d6a37)
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
masnax pushed a commit to masnax/microcluster that referenced this pull request Dec 10, 2024
Add minimal CI tests

(cherry picked from commit 96d6a37)
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
masnax pushed a commit to masnax/microcluster that referenced this pull request Dec 11, 2024
Add minimal CI tests

(cherry picked from commit 96d6a37)
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
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