Skip to content

Custom lint for 'Instance' storage misuse #159

Custom lint for 'Instance' storage misuse

Custom lint for 'Instance' storage misuse #159

Workflow file for this run

name: Rust CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo registry & build artifacts
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Check formatting
run: cargo fmt --check
- name: Run Clippy
run: cargo clippy -p sanctifier-cli -p sanctifier-core --all-targets -- -D warnings
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Run tests (JUnit XML)
run: cargo nextest run -p sanctifier-cli -p sanctifier-core --profile ci
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: junit-test-results
path: target/nextest/ci/junit.xml
- name: Build release binary
run: cargo build --release -p sanctifier-cli