31efa79429
- Add formatting commands to justfile (format, fmt_check, clippy_check, fc) - Create GitHub Actions workflows for automated fmt and clippy checks - Fix existing clippy warnings in macro code - Ensure CI enforcement of code quality standards This brings native_model in line with native_db's robust formatting and linting approach.
30 lines
617 B
YAML
30 lines
617 B
YAML
name: Fmt Check
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main, next ]
|
|
schedule:
|
|
- cron: '0 23 * * 4'
|
|
|
|
env:
|
|
RUST_BACKTRACE: full
|
|
|
|
jobs:
|
|
fmt_check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
- uses: extractions/setup-just@v3
|
|
- uses: hustcer/setup-nu@v3.19
|
|
with:
|
|
version: '0.105.1'
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.PAT_GLOBAL }}
|
|
- name: Just version
|
|
run: just --version
|
|
- name: Fmt Check
|
|
run: just fmt_check |