Skip to content

Commit 7a62391

Browse files
committed
Add GitHub Actions CI
1 parent 429976c commit 7a62391

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/ci.yml

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

big.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,7 @@ P.toJSON = P.toString = function () {
965965
Big = x.constructor;
966966
return stringify(x, x.e <= Big.NE || x.e >= Big.PE, !!x.c[0]);
967967
};
968+
968969
if (typeof Symbol !== "undefined") {
969970
P[Symbol.for('nodejs.util.inspect.custom')] = P.toJSON;
970971
}

0 commit comments

Comments
 (0)