Skip to content
Open
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
25 changes: 2 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# Continuous Integration workflow for FlowFi
# Covers frontend linting/build, backend build/test, and Soroban contract build/test.
name: CI

on:
push:
branches: [ main, develop ]
Expand All @@ -15,22 +12,16 @@ jobs:
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: frontend/package-lock.json

- name: Install dependencies
run: npm ci
run: npm install
working-directory: frontend

- name: Lint
run: npm run lint
working-directory: frontend

- name: Build
run: npm run build
working-directory: frontend
Expand All @@ -52,30 +43,22 @@ jobs:
--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: backend/package-lock.json

- name: Install dependencies
run: npm ci
run: npm install
working-directory: backend

- name: Generate Prisma Client
run: npx prisma generate
working-directory: backend

- name: Build
run: npm run build
working-directory: backend

- name: Run Backend Tests
run: npm test
working-directory: backend
Expand All @@ -88,22 +71,18 @@ jobs:
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
Loading