Skip to content

Commit 6749dff

Browse files
grokifyclaude
andcommitted
ci(tools): add GitHub Actions workflow for TypeScript tests
Run coordinate picker unit tests on push/PR to main when tools/ changes. Configuration: - Node.js versions: 20.x, 22.x - Platforms: ubuntu-latest, macos-latest, windows-latest - Steps: install deps, build TypeScript, run tests with coverage - Path filtering: only triggers on tools/ or workflow changes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0c238ab commit 6749dff

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/test-tools.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Tools Tests
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- 'tools/**'
8+
- '.github/workflows/test-tools.yaml'
9+
pull_request:
10+
branches:
11+
- main
12+
paths:
13+
- 'tools/**'
14+
- '.github/workflows/test-tools.yaml'
15+
workflow_dispatch:
16+
jobs:
17+
test:
18+
strategy:
19+
matrix:
20+
node-version: [20.x, 22.x]
21+
platform: [ubuntu-latest, macos-latest, windows-latest]
22+
runs-on: ${{ matrix.platform }}
23+
defaults:
24+
run:
25+
working-directory: tools
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: ${{ matrix.node-version }}
33+
cache: 'npm'
34+
cache-dependency-path: tools/package-lock.json
35+
- name: Install dependencies
36+
run: npm ci
37+
- name: Build TypeScript
38+
run: npm run build
39+
- name: Run tests with coverage
40+
run: npm test -- --coverage

0 commit comments

Comments
 (0)