feat: implement stream details screen #99
Workflow file for this run
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
| # Continuous Integration workflow for FlowFi | |
| # Covers frontend linting/build, backend build/test, and Soroban contract build/test. | |
| name: CI | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| frontend: | |
| name: Frontend CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| working-directory: frontend | |
| - name: Build | |
| run: npm run build | |
| working-directory: frontend | |
| backend: | |
| name: Backend CI | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:15 | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_DB: flowfi_test | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U postgres" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - name: Install dependencies | |
| run: npm ci --include=optional | |
| - name: Setup Database | |
| run: | | |
| npx prisma generate --schema=prisma/schema.prisma | |
| npx prisma db push --accept-data-loss --schema=prisma/schema.prisma | |
| working-directory: backend | |
| env: | |
| DATABASE_URL: postgresql://postgres:password@127.0.0.1:5432/flowfi_test | |
| - name: Build | |
| run: npm run build | |
| working-directory: backend | |
| - name: Install Rollup Native Binding | |
| run: npm install @rollup/rollup-linux-x64-gnu --no-save | |
| - name: Run Backend Tests | |
| run: | | |
| ls -la src/generated/prisma | |
| npx vitest run --reporter=basic | |
| working-directory: backend | |
| env: | |
| DATABASE_URL: postgresql://postgres:password@127.0.0.1:5432/flowfi_test | |
| NODE_ENV: test | |
| contracts: | |
| name: Soroban Contracts CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| targets: wasm32-unknown-unknown | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "contracts -> target" | |
| - name: Build Contracts | |
| run: cargo build --target wasm32-unknown-unknown --release | |
| working-directory: contracts | |
| - name: Run Contract Tests | |
| run: cargo test | |
| working-directory: contracts |