mirror of
https://github.com/msfjarvis/shared-workflows
synced 2026-03-03 03:30:37 +05:30
Reusable GitHub Actions workflows
|
Some checks failed
Empty check / check (push) Waiting to run
test-flakes-project.yml / chore(deps): update swatinem/rust-cache action to v2.8.2 (push) Failing after 0s
test-rust-project.yml / chore(deps): update swatinem/rust-cache action to v2.8.2 (push) Failing after 0s
update-flake-lock.yml / chore(deps): update swatinem/rust-cache action to v2.8.2 (push) Failing after 0s
|
||
|---|---|---|
| .github | ||
| renovate | ||
| README.md | ||
shared-workflows 
GitHub Actions workflows I use across multiple projects, stored in a single place for reusability.
Contents
Rust
- Runs checks across 3 operating systems (Linux, macOS, and Windows) and 3 Rust channels (Beta, Nightly, and Stable).
- Validates source code formatting
- Lints source code using Clippy
- Runs tests using cargo-nextest
- Lints dependencies using cargo-deny
- Can install packages on Linux runners using APT for crates that do dynamic linking
- Checks that the crate compiles against its MSRV (
1.57.0by default)
Usage
on:
push:
branches:
- main
- renovate/**
pull_request:
branches:
- main
name: Check Rust code
jobs:
check:
uses: msfjarvis/shared-workflows/.github/workflows/test-rust-project.yml@main
Nix Flakes
- Sets up Nix on a Linux runner
- Sets up Cachix with my own binary cache
- Runs
nix flake checkto run all default checks exposed by the Flake
Usage
on:
push:
branches:
- main
- renovate/**
pull_request:
branches:
- main
name: Check Rust code
jobs:
check:
uses: msfjarvis/shared-workflows/.github/workflows/test-flakes-project.yml@main
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
cachix-token: ${{ secrets.CACHIX_AUTH_TOKEN }}