Add CI workflow and README badges

- Add npm, CI, license, node badges to README
- Add CI workflow testing Node 18, 20, 22
- Runs build, lint, typecheck on push/PR

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Adam Ladachowski
2026-02-06 21:07:24 +01:00
parent 402559853d
commit 603e8ca39a
2 changed files with 45 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install webkit
- name: Build
run: npm run build
- name: Lint & Format
run: npm run check
- name: Typecheck
run: npm run typecheck
- name: Test
run: npm test --if-present
+5
View File
@@ -1,5 +1,10 @@
# @aladac/claude-browse
[![npm version](https://img.shields.io/npm/v/@aladac/claude-browse.svg)](https://www.npmjs.com/package/@aladac/claude-browse)
[![CI](https://github.com/aladac/claude-browse/actions/workflows/ci.yml/badge.svg)](https://github.com/aladac/claude-browse/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Node.js](https://img.shields.io/node/v/@aladac/claude-browse.svg)](https://nodejs.org)
Headless browser automation for Claude Code using Playwright WebKit.
## Installation