From 381e4358ea3348feddf10f259ca7961024cabde2 Mon Sep 17 00:00:00 2001 From: Ryan L'Italien Date: Wed, 9 Sep 2026 17:12:23 -0400 Subject: [PATCH] ci: run tests on pull requests and pushes to main publish.yml only triggers on version tag pushes, so a regression is caught at publish time, not before. Add a CI workflow that runs npm test on every PR and every push to main, mirroring the shape of butterstack-connector's ci.yml. --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..cae1606 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + cli-node: + timeout-minutes: 10 + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v7 + - name: Set up Node + uses: actions/setup-node@v7 + with: + node-version-file: '.nvmrc' + - name: Run tests + run: npm test