ci: add dependabot and ci workflow configuration #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sets up a standard set of CI workflows to automatically build, test, and
pubish the crate (using release-plz). Also adds a dependabot
configuration to automatically update dependencies.
This is mostly a copy of the workflows I use in my own projects, without
the msrv check, as I don't think that's necessary for this crate.
See https://github.com/joshka/github-workflows/ for more information.
With the release-plz workflow, anytime you push to main, it will create
a PR with the new version number and changelog. You can then merge this
PR to publish the new version to crates.io. See
joshka/tui-scrollview#25 for an example of what
this looks like.
This requires a couple of settings to be added to work:
Allow release-plz to create and update PRs etc:
"Allow GitHub Actions to create and approve pull requests"
Secrets for code coverage and publishing to crates.io:
https://github.com/shuoli84/tui-menusettings/secrets/actions (add two repository secrets):
tui-menu at: https://crates.io/settings/tokens