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
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
pull_request:
push:
branches:
- main

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
check:
name: mise run check
runs-on: ubuntu-24.04
timeout-minutes: 20

steps:
- name: Check out repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Install tools with mise
uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
with:
version: 2026.6.1
cache: true

- name: Run quality gate
run: mise run check
9 changes: 7 additions & 2 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
min_version = "2026.6.1"

[tools]
actionlint = "1.7.12"
pandoc = "3.10"
rust = "1.97.0"
rust = { version = "1.97.0", profile = "default" }

[tasks.fmt]
description = "Check Rust formatting"
Expand All @@ -20,6 +21,10 @@ run = "cargo test --workspace --all-features"
description = "Parse the normalized blueprint as GitHub-flavored Markdown"
run = "pandoc docs/blueprint/*.md --from=gfm --to=html --fail-if-warnings --output=/dev/null"

[tasks.ci]
description = "Validate GitHub Actions workflows"
run = "actionlint"

[tasks.check]
description = "Run the pull-request quality gate"
depends = ["docs", "fmt", "lint", "test"]
depends = ["ci", "docs", "fmt", "lint", "test"]
210 changes: 210 additions & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "3"
members = ["crates/autophagy-events"]
members = ["crates/autophagy-events", "crates/autophagy-store"]

[workspace.package]
version = "0.1.0-alpha.1"
Expand All @@ -12,6 +12,7 @@ repository = "https://github.com/karnstack/autophagy"
[workspace.dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sha2 = "0.11"
thiserror = "2.0"
time = { version = "0.3", features = ["formatting", "parsing", "serde"] }

Expand Down
Loading