Skip to content

Add timestamp helpers, fee formatting, conversion functions, and recommendation types (#379, #377, #376, #296) #85

Add timestamp helpers, fee formatting, conversion functions, and recommendation types (#379, #377, #376, #296)

Add timestamp helpers, fee formatting, conversion functions, and recommendation types (#379, #377, #376, #296) #85

Workflow file for this run

name: Devkit CI
on:
push:
branches: [main]
paths: ['packages/devkit/**', '.github/workflows/devkit-ci.yml']
pull_request:
branches: [main]
paths: ['packages/devkit/**', '.github/workflows/devkit-ci.yml']
jobs:
build-and-test:
name: Build & Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/devkit
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: packages/devkit
- name: Build
run: cargo build --all-features
- name: Test
run: cargo test --all-features
clippy:
name: Clippy
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/devkit
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: packages/devkit
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
fmt:
name: Rustfmt
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/devkit
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --check