perf(metrics): Reduce token counting batch size for better worker utilization #59
Workflow file for this run
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 Website | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'website/**' | |
| - 'src/**' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - '.tool-versions' | |
| - '.github/workflows/ci-website.yml' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'website/**' | |
| - 'src/**' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - '.tool-versions' | |
| - '.github/workflows/ci-website.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint-website-client: | |
| name: Lint Website Client | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version-file: .tool-versions | |
| cache: npm | |
| - name: Install website client dependencies | |
| working-directory: website/client | |
| run: npm ci | |
| - name: Lint website client | |
| working-directory: website/client | |
| run: npm run lint | |
| lint-website-server: | |
| name: Lint Website Server | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version-file: .tool-versions | |
| cache: npm | |
| - name: Build and link local repomix | |
| run: | | |
| npm ci | |
| npm run build | |
| npm link | |
| - name: Install website server dependencies | |
| working-directory: website/server | |
| run: | | |
| npm ci | |
| npm link repomix | |
| - name: Lint website server | |
| working-directory: website/server | |
| run: npm run lint | |
| bundle-website-server: | |
| name: Bundle Website Server | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version-file: .tool-versions | |
| cache: npm | |
| - name: Build and link local repomix | |
| run: | | |
| npm ci | |
| npm run build | |
| npm link | |
| - name: Install website server dependencies | |
| working-directory: website/server | |
| run: | | |
| npm ci | |
| npm link repomix | |
| - name: Bundle website server | |
| working-directory: website/server | |
| run: npm run bundle |