feat(test): Vitest browser mode, seperate test config for type safety… #1048
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: Build and Deploy 🕛 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| BASE: /${{ github.event.repository.name }}/ | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v6.0.2 | |
| - name: Pnpm 🧱 | |
| uses: pnpm/action-setup@v4.2.0 | |
| - name: Node.js ⚓ | |
| uses: actions/setup-node@v6.2.0 | |
| with: | |
| node-version: latest | |
| cache: pnpm | |
| - name: Install 🔧 | |
| run: | | |
| pnpm i | |
| pnpm playwright | |
| - name: Test 🧪 | |
| run: | | |
| pnpm test | |
| - name: Build 🚧 | |
| run: | | |
| pnpm build | |
| touch dist/.nojekyll | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@v4.8.0 | |
| if: github.ref == 'refs/heads/main' | |
| with: | |
| folder: dist |