Skip to content

feat(daycount): add ACT and 30/360 day-count conventions (Phase 0) (#2) #12

feat(daycount): add ACT and 30/360 day-count conventions (Phase 0) (#2)

feat(daycount): add ACT and 30/360 day-count conventions (Phase 0) (#2) #12

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: ["**"]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings"
jobs:
check:
name: fmt + clippy + test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: cargo fmt --check
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: cargo test
run: cargo test --all --verbose
- name: cargo test --doc
run: cargo test --doc
- name: cargo doc
run: cargo doc --no-deps --document-private-items
env:
RUSTDOCFLAGS: "-D warnings"
msrv:
name: minimum supported rust (1.75)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust 1.75 (MSRV)
uses: dtolnay/rust-toolchain@1.75.0
- uses: Swatinem/rust-cache@v2
- name: cargo build (MSRV)
run: cargo build --all-features