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

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

env:
CARGO_TERM_COLOR: always

jobs:
test:
name: Test
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Cache Cargo dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-

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

- name: Build release
run: cargo build --release --quiet

- name: Run tests
run: cargo test --release --quiet
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and
- Maintains identical behavior with improved structure and testability.

### Added
- Added GitHub Actions CI with format check, build, and test steps
- Added `process_actions` function to encapsulate business logic
- Wrote unit tests using `anyhow::Result` and `ensure` for panic-free testing
- Added `tracing` and `tracing-subscriber` crates for structured logging.
- Added `parse_date` utility to safely parse ISO-8601 timestamps
- Added README summary and improvements section

Expand Down