fix: read stargazers_count (the actual REST field); lock star-failure… #498
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 and Lint | |
| on: | |
| push: | |
| branches-ignore: [ release ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Collect Workflow Telemetry | |
| uses: catchpoint/foresight-workflow-kit-action@v1 | |
| if: success() || failure() | |
| with: | |
| api_key: ${{ secrets.foresight_api_key }} | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js 24 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: 'npm' | |
| - run: npm ci | |
| - run: npm run test | |
| - name: Analyze Test and/or Coverage Results | |
| uses: catchpoint/foresight-test-kit-action@v1 | |
| if: success() || failure() | |
| with: | |
| api_key: ${{ secrets.foresight_api_key }} | |
| test_format: JUNIT | |
| test_framework: JEST | |
| test_path: ./junit.xml | |
| coverage_format: JACOCO/XML | |
| coverage_path: ./coverage | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js 24 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: 'npm' | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm run format-check | |
| - run: npm run typecheck | |
| - run: npm run build |