From 603e8ca39acbad1cbe0cdd8bfdce3866933a1f64 Mon Sep 17 00:00:00 2001 From: Adam Ladachowski Date: Fri, 6 Feb 2026 21:07:24 +0100 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ README.md | 5 +++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5e7f463 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/README.md b/README.md index f47a6c4..be0f9cf 100644 --- a/README.md +++ b/README.md @@ -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