Skip to content

Commit f995d71

Browse files
authored
Merge pull request #3 from ButterStack/ci/run-tests-on-pull-requests
ci: run tests on pull requests and pushes to main
2 parents fbb69a1 + 381e435 commit f995d71

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)