Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: api

on:
push:
branches: [main, master]
paths:
- "api/**"
- ".github/workflows/api.yml"
pull_request:
paths:
- "api/**"
- ".github/workflows/api.yml"

defaults:
run:
working-directory: api

jobs:
rust:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:18-alpine
env:
POSTGRES_USER: keyflow
POSTGRES_PASSWORD: keyflow
POSTGRES_DB: keyflow_api
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U keyflow -d keyflow_api"
--health-interval 2s
--health-timeout 2s
--health-retries 15
env:
DATABASE_URL: postgres://keyflow:keyflow@localhost:5432/keyflow_api
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2
with:
workspaces: api

- name: cargo fmt --check
run: cargo fmt --check

- name: cargo clippy
run: cargo clippy --all-targets -- -D warnings

- name: cargo test
run: cargo test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ build/
# AAR do sherpa-onnx: baixado e conferido por SHA256 pelo app/build.gradle.kts (NM-T1)
/app/libs/*.aar
/app/libs/*.part

# KeyFlow API (Rust, monorepo — api/)
api/target/
261 changes: 247 additions & 14 deletions .specs/features/keyflow-api/tasks.md

Large diffs are not rendered by default.

Loading
Loading