Skip to content

Commit 3e84e65

Browse files
committed
feat : start using github workflows action
1 parent 8f98744 commit 3e84e65

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 🧪 CI Tests
2+
3+
on:
4+
push:
5+
branches: [ main, feature/tests ]
6+
pull_request:
7+
branches: [ main, feature/tests ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18.x, 20.x]
16+
17+
steps:
18+
- name: 📥 Checkout repo
19+
uses: actions/checkout@v4
20+
21+
- name: ⚡ Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
26+
- name: 📦 Install dependencies
27+
run: npm install
28+
29+
- name: 🏗️ Build TypeScript
30+
run: npm run build
31+
32+
- name: 🧪 Run Jest tests
33+
run: npm test

0 commit comments

Comments
 (0)