Skip to content

Commit 8853c90

Browse files
committed
ci: add GitHub Actions workflow for automated testing
Add a GitHub Actions workflow that runs the test suite on push and pull requests. This ensures code quality and catches issues early in the development process. Features: - Runs on push to main and claude/** branches - Runs on all pull requests to main - Tests against Node.js 18, 20, and 22 for compatibility - Uses npm cache for faster builds - Executes `npm install && npm test` The workflow will help maintain code quality and provide immediate feedback on test failures. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8465881 commit 8853c90

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- "claude/**"
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [18, 20, 22]
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
cache: 'npm'
29+
30+
- name: Install dependencies
31+
run: npm install
32+
33+
- name: Run tests
34+
run: npm test

0 commit comments

Comments
 (0)