Skip to content

Merge pull request #752 from stakpak/fix/ak-publish-version #2455

Merge pull request #752 from stakpak/fix/ak-publish-version

Merge pull request #752 from stakpak/fix/ak-publish-version #2455

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main, beta]
env:
CARGO_TERM_COLOR: always
jobs:
rust-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.94.1"
components: rustfmt, clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
cache-targets: false
- name: Format Check
run: cargo fmt -- --check
- name: Lint
run: cargo clippy --all-targets -- -D warnings
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --workspace --verbose
- name: Test (feature-gated)
run: |
cargo test -p stakpak-shared --features sqlite --verbose
cargo test -p stakpak --features libsql-test --verbose
cargo test -p stakpak-gateway --features libsql-test --verbose
cargo test -p stakai --features network-tests --verbose
- name: Free build artifacts before cache save
if: always()
run: rm -rf target