Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# cargo-audit reads Cargo.lock and flags every advisory in it, even for a
# crate behind a disabled feature that never compiles. deny.toml explains
# which file an ignore belongs in.
#
# cargo-audit takes plain IDs, so write each ignore's reason in a comment
# above it.

[advisories]
ignore = []
28 changes: 28 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2
updates:
- package-ecosystem: cargo
directory: /
schedule:
interval: monthly
open-pull-requests-limit: 10
commit-message:
prefix: "chore(deps)"
groups:
cargo-minor-and-patch:
update-types:
- minor
- patch

- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
open-pull-requests-limit: 5
commit-message:
prefix: "chore(ci)"
groups:
actions-all:
update-types:
- major
- minor
- patch
68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

# Only PR runs are cancelled, so a push to main always finishes.
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings

jobs:
cargo:
name: Format, Clippy & Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install Rust
run: |
rustup toolchain install stable --profile minimal --component rustfmt,clippy
rustup default stable
- uses: Swatinem/rust-cache@v2
- name: cargo fmt
run: cargo fmt -- --check
- name: cargo clippy
run: cargo clippy --locked --all-targets --all-features -- -D warnings
# Also runs the README example, which is the crate-level doctest.
- name: cargo test
run: cargo test --locked --all-features
# Fails on a broken intra-doc link, which rustc alone does not check.
- name: cargo doc
run: cargo doc --locked --no-deps
env:
RUSTDOCFLAGS: -D warnings

cargo-audit:
name: Cargo Audit
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
steps:
- uses: actions/checkout@v7
- uses: rustsec/audit-check@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}

cargo-deny:
name: Cargo Deny
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check advisories

cargo-machete:
name: Cargo Machete
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: bnjbvr/cargo-machete@v0.9.2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
128 changes: 128 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "penelope"
version = "0.1.0"
edition = "2024"
description = "A Given/When/Then scenario runner for eventually consistent systems"
license = "Apache-2.0"
repository = "https://github.com/DLC-link/penelope"
readme = "README.md"

[dependencies]
anyhow = { version = "1.0.98" }
tokio = { version = "1.48.0", features = ["time"] }
tracing = { version = "0.1" }

[dev-dependencies]
tokio = { version = "1.48.0", features = ["macros", "rt-multi-thread", "time"] }

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
Loading
Loading