build(deps-dev): bump vite from 8.0.10 to 8.2.0 #24
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-and-typecheck: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| continue-on-error: true | |
| run: npm run lint | |
| - name: Typecheck | |
| continue-on-error: true | |
| run: npm run typecheck | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| redis: | |
| image: redis:7-alpine | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 6379:6379 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Wait for Redis | |
| run: | | |
| for i in $(seq 1 30); do | |
| if redis-cli -h localhost -p 6379 ping | grep -q PONG; then | |
| echo "Redis is ready!" | |
| exit 0 | |
| fi | |
| echo "Waiting for Redis... ($i/30)" | |
| sleep 2 | |
| done | |
| echo "Redis failed to start" | |
| exit 1 | |
| - name: Run tests | |
| env: | |
| REDIS_HOST: localhost | |
| REDIS_PORT: 6379 | |
| run: npm run test:ci | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: [lint-and-typecheck, test] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npx next build |