fix(client): prevent WebSocket and HTTP calls in simulation mode #18
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: Frontend CI | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| paths: | |
| - 'client/**' | |
| pull_request: | |
| branches: [ main, master ] | |
| paths: | |
| - 'client/**' | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./client | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: './client/package-lock.json' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Lint and Type-check | |
| run: npm run build | |
| - name: Run Unit Tests | |
| run: npm run test |