Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msfjarvis/shared-workflows
Reusable GitHub Actions workflows
https://github.com/msfjarvis/shared-workflows
Last synced: about 1 month ago
JSON representation
Reusable GitHub Actions workflows
- Host: GitHub
- URL: https://github.com/msfjarvis/shared-workflows
- Owner: msfjarvis
- Created: 2021-10-05T19:46:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-25T18:25:59.000Z (9 months ago)
- Last Synced: 2024-05-01T16:02:23.389Z (8 months ago)
- Size: 174 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shared-workflows [![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)
GitHub Actions workflows I use across multiple projects, stored in a single place for reusability.
## Contents
### [Rust](.github/workflows/test-rust-project.yml)
- 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](https://nexte.st/)
- Lints dependencies using [cargo-deny](https://github.com/EmbarkStudios/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.0` by default)Usage
```yaml
on:
push:
branches:
- main
- renovate/**
pull_request:
branches:
- mainname: Check Rust code
jobs:
check:
uses: msfjarvis/shared-workflows/.github/workflows/test-rust-project.yml@main
```### [Nix Flakes](.github/workflows/test-flakes-project.yml)
- Sets up [Nix](https://nixos.org) on a Linux runner
- Sets up [Cachix](https://cachix.org/) with my own binary cache
- Runs `nix flake check` to run all default checks exposed by the FlakeUsage
```yaml
on:
push:
branches:
- main
- renovate/**
pull_request:
branches:
- mainname: 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 }}
```