Skip to content

feat(db): add migration for historical yield accrual logging #122

feat(db): add migration for historical yield accrual logging

feat(db): add migration for historical yield accrual logging #122

Workflow file for this run

name: CI - Backend
on:
pull_request:
branches: [main, master]
paths:
- 'backend/**'
- '.github/workflows/ci-backend.yml'
jobs:
ci:
name: Build, Lint & Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: ZAPS
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: postgres://postgres:password@localhost:5432/ZAPS
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: backend
- name: Check formatting
run: cargo fmt --all -- --check || true
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings || true
- name: Tests
run: cargo test --all-features || true