Merge branch 'release/december-25' of github.com:greenpill-dev-guild/… #61
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: Admin Dashboard Tests | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| paths: | |
| - 'packages/admin/**' | |
| pull_request: | |
| branches: [ main, develop ] | |
| paths: | |
| - 'packages/admin/**' | |
| jobs: | |
| unit-tests: | |
| 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' | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run unit tests | |
| run: | | |
| cd packages/admin | |
| bun run test:unit | |
| env: | |
| CI: true | |
| - name: Generate coverage report | |
| run: | | |
| cd packages/admin | |
| bun run test:coverage | |
| env: | |
| CI: true | |
| - name: Upload coverage reports | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: packages/admin/coverage | |
| flags: admin-dashboard | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run integration tests | |
| run: | | |
| cd packages/admin | |
| bun run test:integration | |
| env: | |
| CI: true | |
| VITEST_INTEGRATION: true | |
| VITE_BASE_SEPOLIA_RPC: ${{ secrets.BASE_SEPOLIA_RPC }} | |
| TEST_PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }} | |
| lint-and-format: | |
| 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' | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run linting | |
| run: | | |
| cd packages/admin | |
| bun run lint | |
| - name: Check formatting | |
| run: bun run format:check | |
| - name: Type check and build | |
| run: | | |
| cd packages/admin | |
| bun run build |