Skip to content

Commit 3bbbb4e

Browse files
authored
Merge pull request #16 from bitfl0wer/ci
CI: Build and Test
2 parents 408d054 + 287a5cb commit 3bbbb4e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build and Test commitollama
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '20'
19+
cache: 'npm'
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Build
23+
run: npm run build
24+
- name: Run tests
25+
run: xvfb-run -a npm test

0 commit comments

Comments
 (0)