-
Notifications
You must be signed in to change notification settings - Fork 45
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 CI to check that the provider compiles #105
Conversation
78c9681
to
020474b
Compare
This is necessary to prevent regressions like #101.
020474b
to
9f1974e
Compare
- lll | ||
- megacheck | ||
- misspell | ||
- nakedret | ||
- structcheck | ||
- revive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes here allow the linter to trigger without warnings on deprecated linters.
run: | | ||
git grep -l 'go:embed' -- provider | xargs sed -i 's/go:embed/ goembed/g' | ||
- name: prepare upstream | ||
continue-on-error: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why continue on error here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the Makefile might not define an upstream
target. If it does, then it is assumed to be necessary to compile the provider. If make upstream
exists and fails, it is assumed the next step will fail.
This PR changes the hypothetical provider to an actual empty provider so the template compiles as is. It then checks compilation by running golangci-lint on the provider.
Compile failures will now fail CI.
Inspired by #101