Skip to content

Commit 381e435

Browse files
committed
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.
1 parent fbb69a1 commit 381e435

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
cli-node:
14+
timeout-minutes: 10
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v7
19+
- name: Set up Node
20+
uses: actions/setup-node@v7
21+
with:
22+
node-version-file: '.nvmrc'
23+
- name: Run tests
24+
run: npm test

0 commit comments

Comments
 (0)