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.