Skip to content

Commit 7a849b4

Browse files
committed
Add GitHub Actions CI
1 parent 368bae2 commit 7a849b4

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
test:
16+
name: Test on Node ${{ matrix.node-version }}
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
node-version:
23+
- 20
24+
- 22
25+
26+
steps:
27+
- name: Check out repository
28+
uses: actions/checkout@v4
29+
30+
- name: Set up Node
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
cache: npm
35+
36+
- name: Install dependencies
37+
run: npm ci
38+
39+
- name: Typecheck
40+
run: npm run typecheck
41+
42+
- name: Build
43+
run: npm run build
44+
45+
- name: Test
46+
run: npm test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# json-html-kit
22

3+
[![CI](https://github.com/Recoveredd/json-html-kit/actions/workflows/ci.yml/badge.svg)](https://github.com/Recoveredd/json-html-kit/actions/workflows/ci.yml)
4+
35
Modern TypeScript utilities for rendering arbitrary JSON as safe, themed, human-friendly HTML.
46

57
`json-html-kit` is designed for reports, admin tools, demos, documentation pages and support dashboards where a raw JSON tree is too technical, but building a custom view is too slow.

0 commit comments

Comments
 (0)