Skip to content

Commit 8ba7ba2

Browse files
authored
Merge pull request #423 from fasenderos/node-test-runner
test: replace tap with the built-in node test runner
2 parents bb94ef9 + f81ddd8 commit 8ba7ba2

18 files changed

+1871
-7681
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
build:
2020
working_directory: ~/hft-limit-order-book
2121
docker:
22-
- image: cimg/node:lts
22+
- image: cimg/node:22.5
2323
steps:
2424
- checkout
2525
- *restore-cache
@@ -33,7 +33,7 @@ jobs:
3333
test:
3434
working_directory: ~/hft-limit-order-book
3535
docker:
36-
- image: cimg/node:lts
36+
- image: cimg/node:22.5
3737
steps:
3838
- checkout
3939
- *restore-cache
@@ -42,7 +42,7 @@ jobs:
4242
name: Unit tests
4343
command: npm run test:cov
4444
- codecov/upload:
45-
file: './.tap/report/lcov.info'
45+
file: 'lcov.info'
4646

4747
workflows:
4848
version: 2

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup .npmrc file to publish to npm
2424
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
2525
with:
26-
node-version: '18.x'
26+
node-version: '20.x'
2727
registry-url: 'https://registry.npmjs.org'
2828
- name: Install modules
2929
run: npm install
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup .npmrc file to publish to GitHub Packages
3737
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
3838
with:
39-
node-version: '18.x'
39+
node-version: '20.x'
4040
registry-url: 'https://npm.pkg.github.com'
4141
scope: '@fasenderos'
4242
- run: npm run addscope

.github/workflows/test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,10 @@ on:
2626

2727
jobs:
2828
test:
29-
runs-on: ${{ matrix.os }}
29+
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
os:
33-
- ubuntu-latest
34-
- windows-latest
35-
node: [18.x, 20.x]
32+
node: [20.x, 22.x]
3633

3734
steps:
3835
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -43,4 +40,4 @@ jobs:
4340
- name: Install modules
4441
run: npm install
4542
- name: Run tests
46-
run: npm test
43+
run: npm run test:ci

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ pids
1515
*.seed
1616
*.pid.lock
1717

18-
# Report and coverage generated by tap
19-
.tap
18+
# Report and coverage generated by node test runner
19+
lcov.info
2020

2121
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
2222
.grunt

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
npm run lint
2-
npm run test
2+
npm run test:ci

0 commit comments

Comments
 (0)