fix: mobile responsive UI improvements #395
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: Node.js CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| services: | |
| postgres: | |
| image: pgvector/pgvector:pg16 | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: wordclaw | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 24.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| cache: 'npm' | |
| - name: Install dependencies (Backend) | |
| run: npm ci | |
| - name: Run Backend Migrations | |
| run: npx tsx src/db/migrate.ts | |
| env: | |
| DATABASE_URL: postgres://postgres:postgres@localhost:5432/wordclaw | |
| - name: Run Backend Tests with Coverage | |
| run: npm run test:coverage | |
| env: | |
| DATABASE_URL: postgres://postgres:postgres@localhost:5432/wordclaw | |
| - name: Upload Backend Coverage Artifact | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: backend-coverage | |
| path: coverage | |
| if-no-files-found: ignore | |
| - name: Run Backend Build | |
| run: npm run build | |
| - name: Run Docs Build | |
| run: npm run docs:build | |
| - name: Install dependencies (Frontend) | |
| run: npm ci | |
| working-directory: ./ui | |
| - name: Run Frontend Static Checks | |
| run: npm run check | |
| working-directory: ./ui | |
| - name: Run Frontend Tests with Coverage | |
| run: npm run test:coverage | |
| working-directory: ./ui | |
| - name: Upload Frontend Coverage Artifact | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ui-coverage | |
| path: ui/coverage | |
| if-no-files-found: ignore | |
| - name: Publish Coverage Summary | |
| if: always() | |
| run: node scripts/ci/write-coverage-summary.mjs | |
| - name: Run Frontend Build | |
| run: npm run build | |
| working-directory: ./ui |