Repository navigation
feat: implemented Add metadata_uri and verification_status to Collate… #80
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
| name: CI | |
| on: | |
| push: | |
| branches: [main, master, contract] | |
| pull_request: | |
| branches: [main, master, contract] | |
| jobs: | |
| # ── TypeScript Server ────────────────────────────────────────────────────── | |
| server: | |
| name: Server Checks (TypeScript) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./server | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: server/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Generate Prisma Client | |
| run: npx prisma generate | |
| env: | |
| DATABASE_URL: "postgresql://user:pass@localhost:5432/db?schema=public" | |
| - name: Type Check | |
| run: npx tsc --noEmit | |
| - name: Build | |
| run: npm run build | |
| # ── Frontend ─────────────────────────────────────────────────────────────── | |
| frontend: | |
| name: Frontend Checks (Next.js) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./frontend | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| - name: Build | |
| run: npm run build | |
| # ── Smart Contracts ──────────────────────────────────────────────────────── | |
| contracts: | |
| name: Contract Checks (Rust/Soroban) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./contracts | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| components: clippy, rustfmt | |
| - name: Cache Cargo Dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| contracts/target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('contracts/Cargo.lock') }} | |
| - name: Check Formatting | |
| run: cargo fmt --all -- --check | |
| - name: Lint with Clippy | |
| run: cargo clippy --target wasm32-unknown-unknown -- -D warnings | |
| - name: Build Contract (WASM) | |
| run: cargo build --target wasm32-unknown-unknown --release | |
| - name: Run Tests | |
| run: cargo test |