0.1.0 |
|
---|
#29 in #updated
38KB
880 lines
github-workflows-update
Check github workflows for actions that can be updated
lib.rs
:
Check if github actions used in a workflow can be updated
Code structure
- Utility modules:
- [
cmd
]: command line arguments parsing and main function. error
:Error
andResult
types.version
: type wrapper for versions; currently using.semver
withlenient_semver
- [
- Main functionality:
processor
: top level file processing function.workflow
: workflow file parsing, intoworkflow::Workflow
type. A workflow can have one or moreentity::Entity
s that represent resource with a version.entity
: theentity::Entity
type.resolver
: a resolverresolver::Server
that makes async requests and caches the result, and an asyncresolver::Client
that fills theentity.latest
field with the latest version of the upstream entity.updater
: the resolver can deal with different upstream API's by using theupdater::Upd
trait, which is generic over the currently supportedupdater::docker
andupdater::github
upstreams.
Dependencies
~12–25MB
~370K SLoC