feat: embedded wallet auth, varlock env management, and test remediation #251
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: Admin Dashboard Tests | |
| on: | |
| push: | |
| branches: [main, develop] | |
| paths: | |
| - "packages/admin/**" | |
| - "packages/shared/**" | |
| pull_request: | |
| branches: [main, develop] | |
| paths: | |
| - "packages/admin/**" | |
| - "packages/shared/**" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run tests with coverage | |
| run: | | |
| cd packages/admin | |
| bun run test:coverage | |
| env: | |
| CI: true | |
| lint-and-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - 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 | |
| env: | |
| VITE_CHAIN_ID: "11155111" | |
| VITE_WALLETCONNECT_PROJECT_ID: "test" | |
| VITE_PIMLICO_API_KEY: "test" | |
| VITE_ENVIO_INDEXER_URL: "http://localhost:8080" |