Update migration increments #31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: rust | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| rust-direct-commands: | |
| runs-on: ubuntu-24.04 | |
| name: Rust checks (direct commands) | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: 1.95.0 | |
| components: clippy,rustfmt | |
| - name: Install lychee | |
| run: | | |
| cargo install lychee --version 0.24.1 --locked | |
| - name: Install cargo-llvm-cov | |
| run: | | |
| cargo install cargo-llvm-cov --locked | |
| - name: Run cargo test | |
| run: | | |
| cd rust | |
| cargo test | |
| - name: Run cargo llvm-cov summary | |
| run: | | |
| cd rust | |
| cargo llvm-cov --workspace --all-targets --summary-only | |
| - name: Run cargo clippy | |
| run: | | |
| cd rust | |
| cargo clippy --all-targets -- -D warnings | |
| - name: Run cargo build | |
| run: | | |
| cd rust | |
| cargo build | |
| - name: Run cargo fmt check | |
| run: | | |
| cd rust | |
| cargo fmt -- --check | |
| - name: Run Markdown link checks | |
| run: | | |
| find . -type f -name '*.md' \ | |
| -not -path './.git/*' \ | |
| -not -path './vendor/*' \ | |
| -not -path './rust/target/*' \ | |
| -not -path './coverage/*' \ | |
| -not -path './tmp/*' \ | |
| -print0 | xargs -0 lychee --include-fragments --offline --no-progress | |
| rust-wrapper-scripts: | |
| runs-on: ubuntu-24.04 | |
| name: Rust checks (wrapper scripts) | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: 1.95.0 | |
| components: clippy,rustfmt | |
| - name: Install lychee | |
| run: | | |
| cargo install lychee --version 0.24.1 --locked | |
| - name: Install cargo-llvm-cov | |
| run: | | |
| cargo install cargo-llvm-cov --locked | |
| - name: Run test wrapper | |
| run: | | |
| bash ./.agent/scripts/tests.sh | |
| - name: Run coverage wrapper | |
| run: | | |
| bash ./.agent/scripts/coverage.sh | |
| - name: Run lint wrapper | |
| run: | | |
| bash ./.agent/scripts/lint.sh | |
| - name: Run build wrapper | |
| run: | | |
| bash ./.agent/scripts/build.sh | |
| - name: Run format wrapper | |
| run: | | |
| bash ./.agent/scripts/format.sh | |
| - name: Run Markdown lint wrapper | |
| run: | | |
| bash ./.agent/scripts/lint-md.sh | |
| rust-makefile: | |
| runs-on: ubuntu-24.04 | |
| name: Rust checks (Makefile) | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: 1.95.0 | |
| components: clippy,rustfmt | |
| - name: Install cargo-llvm-cov | |
| run: | | |
| cargo install cargo-llvm-cov --locked | |
| - name: Install lychee | |
| run: | | |
| cargo install lychee --version 0.24.1 --locked | |
| - name: Run make | |
| run: make |