This repository was archived by the owner on Jun 14, 2026. It is now read-only.
Mark README as archived — token metering now native in Copilot CLI #14
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: Test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [18, 20, 22] | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Syntax check | |
| run: node --check bin/token-meter.js bin/copilot-tokens lib/*.js | |
| - name: Lint | |
| if: matrix.os == 'ubuntu-latest' && matrix.node-version == 22 | |
| run: | | |
| npm install --no-audit --no-fund --silent | |
| npm run lint | |
| - name: Unit tests | |
| run: node --test test/ | |
| - name: Smoke test CLI help | |
| run: node bin/copilot-tokens help |