This repository was archived by the owner on May 6, 2026. It is now read-only.
Run vitest #274
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: Run vitest | |
| on: | |
| pull_request: | |
| branches: | |
| - "main" | |
| - "release" | |
| push: | |
| branches: | |
| - "main" | |
| jobs: | |
| vitest: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| node-version: [22] | |
| env: | |
| VITE_WALLET_KIT_PROJECT_ID: ${{ secrets.VITE_WALLET_KIT_PROJECT_ID }} | |
| VITE_APP_TITLE: ${{ vars.VITE_APP_TITLE }} | |
| VITE_ERPC_API_KEY: ${{ secrets.VITE_ERPC_API_KEY }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build UIKit | |
| run: pnpm run uikit:build | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Create .env | |
| run: | | |
| echo "VITE_WALLET_KIT_PROJECT_ID=${{ env.VITE_WALLET_KIT_PROJECT_ID }}" >> apps/lite/.env | |
| echo "VITE_APP_TITLE=${{ env.VITE_APP_TITLE }}" >> apps/lite/.env | |
| echo "VITE_ERPC_API_KEY=${{ env.VITE_ERPC_API_KEY }}" >> apps/lite/.env | |
| - name: Test | |
| run: pnpm vitest |