feat: add oracle admin rotation #21
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
| name: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| server-build: | |
| name: Server Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: Server/package-lock.json | |
| - name: Install dependencies | |
| working-directory: Server | |
| run: npm ci | |
| - name: Generate Prisma client | |
| working-directory: Server | |
| run: npx prisma generate | |
| - name: Build TypeScript | |
| working-directory: Server | |
| run: npm run build | |
| - name: Run unit tests | |
| working-directory: Server | |
| run: npm test | |
| front-build: | |
| name: Frontend Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: Front/package-lock.json | |
| - name: Install dependencies | |
| working-directory: Front | |
| run: npm ci --legacy-peer-deps | |
| - name: Type check | |
| working-directory: Front | |
| run: npx tsc --noEmit | |
| - name: Build Next.js | |
| working-directory: Front | |
| run: npm run build | |
| env: | |
| NEXT_PUBLIC_API_BASE_URL: https://zcore-api.vercel.app | |
| NEXT_PUBLIC_STELLAR_NETWORK: testnet |