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
7 changes: 4 additions & 3 deletions .github/CICD_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The Janus project uses GitHub Actions for continuous integration and deployment.
### Manual Trigger

```bash
# Via GitHub UI: Actions tab → CI/CD Pipeline → Run workflow
# Via GitHub UI: Actions tab → choose `Fast PR Checks` or `Release And Extended CI` → Run workflow
```

## Jobs Overview
Expand Down Expand Up @@ -313,7 +313,8 @@ Common issues:

### Main Configuration

- `.github/workflows/ci.yml` - Main pipeline
- `.github/workflows/fast-pr.yml` - Fast pull request validation
- `.github/workflows/release.yml` - Extended branch, release, and scheduled checks

### Supporting Files

Expand Down Expand Up @@ -355,4 +356,4 @@ Common issues:
- Simplified from 9 jobs to 5-6 jobs
- Reduced pipeline time by ~70%
- Added dependency review for PRs
- Updated publish job to remove Rust dependencies
- Updated publish job to remove Rust dependencies
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ make fmt # Format all code
make clippy # Lint checks
```

**CI Pipeline:** GitHub Actions runs `rustfmt`, `clippy`, and tests on Ubuntu/Windows/macOS with stable/beta Rust. See `.github/workflows/ci.yml`.
**CI Pipeline:** GitHub Actions runs fast PR checks from `.github/workflows/fast-pr.yml` and extended push/release checks from `.github/workflows/release.yml`.

### Benchmarking

Expand Down
273 changes: 0 additions & 273 deletions .github/workflows/ci.yml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/fast-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Fast PR Checks

on:
pull_request:
branches: [main, develop]
paths-ignore:
- "**/*.md"
- "docs/**"

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

env:
CARGO_TERM_COLOR: always

jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt

- name: Check formatting
run: cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2

- name: Run Clippy
run: cargo clippy --all-targets --all-features -- -D warnings

test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2

- name: Run tests
run: cargo test --all-features --verbose

- name: Run doc tests
run: cargo test --doc --all-features --verbose
Loading
Loading