Skip to content

Commit 6e14cda

Browse files
authored
test: add vitest tests and GitHub Actions CI (#2)
* test: add vitest tests and GitHub Actions CI - Add basic tests for createBundle function - Test recursive scanning, pretty printing, font metadata - CI runs on Node 18, 20, 22 * chore: add Anton font license (OFL)
1 parent 187f7b9 commit 6e14cda

6 files changed

Lines changed: 1663 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18, 20, 22]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Run tests
30+
run: npm test

0 commit comments

Comments
 (0)