From fdf6a9fbb2e878a85e073a4d3cc3f1f250a6669d Mon Sep 17 00:00:00 2001 From: Premnath-06 Date: Sat, 11 Jul 2026 23:09:43 +0530 Subject: [PATCH] ci: add GitHub Actions workflow --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 34 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..4a280f1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm install + + - name: Run typecheck + run: npm run typecheck + + - name: Run tests + run: npm test \ No newline at end of file diff --git a/README.md b/README.md index 21ca72e..882fb09 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![CI](https://github.com/infralayers/mv3-proxy-kit/actions/workflows/ci.yml/badge.svg)](https://github.com/infralayers/mv3-proxy-kit/actions/workflows/ci.yml) + # mv3-proxy-kit Open-source toolkit for building reliable Manifest V3 proxy/VPN browser extensions.