Files
mytheclipse/.github/workflows/ci.yml
T
asepharyana 4d851c5a58
CI / Rustfmt (push) Canceled after 0s
CI / Clippy (push) Canceled after 0s
CI / Test (workspace all features) (push) Canceled after 0s
CI / Test (workspace default features) (push) Canceled after 0s
CI / Test (mytheclipse / bg only) (push) Canceled after 0s
CI / Test (mytheclipse / compute only) (push) Canceled after 0s
CI / Test (mytheclipse / io only) (push) Canceled after 0s
CI / Test (mytheclipse / lifecycle only) (push) Canceled after 0s
CI / Test (mytheclipse / observability only) (push) Canceled after 0s
CI / Test (mytheclipse / resiliency only) (push) Canceled after 0s
CI / Test (mytheclipse / traffic only) (push) Canceled after 0s
CI / Test (mytheclipse-cache / l2-redis) (push) Canceled after 0s
CI / Test (mytheclipse-cache / l1-moka) (push) Canceled after 0s
CI / Test (mytheclipse-cache / default) (push) Canceled after 0s
CI / Test (mytheclipse-config / default) (push) Canceled after 0s
CI / Test (mytheclipse-crypto / default) (push) Canceled after 0s
CI / Test (mytheclipse-event / amqp) (push) Canceled after 0s
CI / Test (mytheclipse-event / nats) (push) Canceled after 0s
CI / Test (mytheclipse-event / default (mem)) (push) Canceled after 0s
CI / Test (mytheclipse-storage / gcs) (push) Canceled after 0s
CI / Test (mytheclipse-storage / s3) (push) Canceled after 0s
CI / Test (mytheclipse-storage / default (local)) (push) Canceled after 0s
CI / Run mytheclipse example (push) Canceled after 0s
CI / Docs check (push) Canceled after 0s
CI / Cargo package dry-run (mytheclipse) (push) Canceled after 0s
CI / Cargo package dry-run (mytheclipse-cache) (push) Canceled after 0s
CI / Cargo package dry-run (mytheclipse-config) (push) Canceled after 0s
CI / Cargo package dry-run (mytheclipse-crypto) (push) Canceled after 0s
CI / Cargo package dry-run (mytheclipse-event) (push) Canceled after 0s
CI / Cargo package dry-run (mytheclipse-storage) (push) Canceled after 0s
Release / Semantic Release (push) Canceled after 0s
chore: rename corex-* crates to mytheclipse-* namespace
Rename all `corex-cache`, `corex-storage`, `corex-event`, `corex-config`,
and `corex-crypto` crates to `mytheclipse-cache`, `mytheclipse-storage`,
`mytheclipse-event`, `mytheclipse-config`, and `mytheclipse-crypto`
respectively, aligning with the `mytheclipse` root crate naming convention.

- Convert root `Cargo.toml` from a package manifest to a workspace
  manifest with explicit member paths
- Update crate names in each `Cargo.toml` and docs.rs URLs
- Update all import paths, module doc comments, and error/panic messages
  from `corex-*` to `mytheclipse-*` across source and README files
- Update CI workflow and publish script to reference the new crate names<tool_call></think>chore: rename corex-* crates to mytheclipse-* namespace

Rename all `corex-cache`, `corex-storage`, `corex-event`, `corex-config`,
and `corex-crypto` crates to `mytheclipse-cache`, `mytheclipse-storage`,
`mytheclipse-event`, `mytheclipse-config`, and `mytheclipse-crypto`
respectively, aligning with the `mytheclipse` root crate naming convention.

- Convert root `Cargo.toml` from a package manifest to a workspace
  manifest with explicit member paths
- Update crate names in each `Cargo.toml` and docs.rs URLs
- Update all import paths, module doc comments, and error/panic messages
  from `corex-*` to `mytheclipse-*` across source and README files
- Update CI workflow and publish script to reference the new crate names
2026-08-28 22:29:49 +07:00

127 lines
4.5 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Clippy (workspace, all features)
run: cargo clippy --workspace --all-features -- -D warnings
- name: Clippy (workspace, no default features)
run: cargo clippy --workspace --no-default-features -- -D warnings
test-matrix:
name: Test (${{ matrix.name }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# Whole-workspace sanity passes.
- name: workspace default features
flags: "--workspace"
- name: workspace all features
flags: "--workspace --all-features"
# mytheclipse: execution primitives + resiliency/traffic/lifecycle/observability
- name: mytheclipse / io only
flags: "-p mytheclipse --no-default-features --features io"
- name: mytheclipse / compute only
flags: "-p mytheclipse --no-default-features --features compute"
- name: mytheclipse / bg only
flags: "-p mytheclipse --no-default-features --features bg"
- name: mytheclipse / resiliency only
flags: "-p mytheclipse --no-default-features --features resiliency"
- name: mytheclipse / traffic only
flags: "-p mytheclipse --no-default-features --features traffic"
- name: mytheclipse / lifecycle only
flags: "-p mytheclipse --no-default-features --features lifecycle"
- name: mytheclipse / observability only
flags: "-p mytheclipse --no-default-features --features observability"
# mytheclipse-cache
- name: mytheclipse-cache / default
flags: "-p mytheclipse-cache"
- name: mytheclipse-cache / l1-moka
flags: "-p mytheclipse-cache --no-default-features --features l1-moka"
- name: mytheclipse-cache / l2-redis
flags: "-p mytheclipse-cache --no-default-features --features l1-memory,l2-redis"
# mytheclipse-storage
- name: mytheclipse-storage / default (local)
flags: "-p mytheclipse-storage"
- name: mytheclipse-storage / s3
flags: "-p mytheclipse-storage --no-default-features --features s3"
- name: mytheclipse-storage / gcs
flags: "-p mytheclipse-storage --no-default-features --features gcs"
# mytheclipse-event
- name: mytheclipse-event / default (mem)
flags: "-p mytheclipse-event"
- name: mytheclipse-event / amqp
flags: "-p mytheclipse-event --no-default-features --features amqp"
- name: mytheclipse-event / nats
flags: "-p mytheclipse-event --no-default-features --features nats"
# mytheclipse-config
- name: mytheclipse-config / default
flags: "-p mytheclipse-config"
# mytheclipse-crypto
- name: mytheclipse-crypto / default
flags: "-p mytheclipse-crypto"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --all-targets ${{ matrix.flags }}
- name: Test
run: cargo test ${{ matrix.flags }}
example:
name: Run mytheclipse example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo run -p mytheclipse --example main --features full
docs:
name: Docs check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: RUSTDOCFLAGS="-D warnings" cargo doc --workspace --all-features --no-deps
package:
name: Cargo package dry-run
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
crate:
[mytheclipse, mytheclipse-cache, mytheclipse-storage, mytheclipse-event, mytheclipse-config, mytheclipse-crypto]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Package
run: cargo package -p ${{ matrix.crate }} --no-verify