A collection of reusable Github workflows which I use across my projects
Executes rust lints, checks and tests. Caches crates and builds.
cargo check
cargo fmt
cargo clippy
cargo test
Inputs
rust-version
(Optional): Rust toolchain version to use. Default isbeta
workdir
(Optional): Directory of the Rust project to check. Default is root of the repository. Useful for monorepos
Executes rust audit. Caches crates and builds. Should be used in combination with the schedule event to ensure frequent audits.
Inputs
rust-version
(Optional): Rust toolchain version to use. Default isbeta
workdir
(Optional): Directory of the Rust project to check. Default is root of the repository. Useful for monorepos
Execute the lint
script from your package.json
. Uses pnpm and caches the store.
Inputs
node-version
(Optional): Nodejs version to use. Default islts/*
pnpm-version
(Optional): pnpm version to use. Default islatest
workdir
(Optional): Directory of the javascript code to lint. Default is the root of the repository. Useful for monorepos
Builds and publishes a Docker image to the Github Registry.
Inputs
images
: Image name. Example:ghcr.io/giyomoon/workflows
platforms
(Optional): Platforms to build the image for. Default:linux/amd64
workdir
(Optional): Directory of the Dockerfile to build. Default is the root of the repository. Useful for monorepos