Skip to content

Commit 5fa2545

Browse files
ericyangpanclaude
andcommitted
ci(workflows): align workflows with package.json scripts
- Replace npx tsc --noEmit with npm run type-check for consistency - Remove tests-validate job, tests now run via vitest (test:ci) - Add test job running npm run test:ci - Replace node scripts/fetch-github-stars.mjs with npm run fetch:github-stars Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c1e80ab commit 5fa2545

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ jobs:
4747
run: npm ci
4848

4949
- name: Run TypeScript type check
50-
run: npx tsc --noEmit
50+
run: npm run type-check
5151

52-
tests-validate:
53-
name: Tests (Validate)
52+
test:
53+
name: Test
5454
runs-on: ubuntu-latest
5555
steps:
5656
- name: Checkout code
@@ -65,8 +65,8 @@ jobs:
6565
- name: Install dependencies
6666
run: npm ci
6767

68-
- name: Run validation tests
69-
run: npm run test:validate
68+
- name: Run tests
69+
run: npm run test:ci
7070

7171
spell-check:
7272
name: Spell Check
@@ -120,7 +120,7 @@ jobs:
120120
ci-success:
121121
name: CI Success
122122
runs-on: ubuntu-latest
123-
needs: [lint, type-check, tests-validate, spell-check, build]
123+
needs: [lint, type-check, test, spell-check, build]
124124
if: always()
125125
steps:
126126
- name: Check all jobs

.github/workflows/scheduled-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
# TODO: Configure GITHUB_TOKEN with appropriate permissions
9898
# The fetch-github-stars script may need authentication
9999
- name: Fetch GitHub stars
100-
run: node scripts/fetch-github-stars.mjs
100+
run: npm run fetch:github-stars
101101
env:
102102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103103
continue-on-error: true

0 commit comments

Comments
 (0)