94
94
nodejs : [
95
95
["v108", 18],
96
96
["v115", 20],
97
- ["v127", 22]
97
+ ["v127", 22],
98
+ ["v131", 23]
98
99
]
99
100
platform : [
100
101
" x86_64" ,
@@ -141,7 +142,9 @@ jobs:
141
142
142
143
- name : Run Aerospike server
143
144
if : ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
144
- run : docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
145
+ run : |
146
+ npm i @types/mocha @types/yargs @types/semver @types/chai;
147
+ docker run -d -v $(pwd)/.github/assets/aerospike.conf:/etc/mail/aerospike.conf --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server --config-file /etc/mail/aerospike.conf
145
148
146
149
# - name: Set config.conf to use Docker IP address of Aerospike server
147
150
# # config.conf should be copied into the cibuildwheel Docker container
@@ -154,7 +157,11 @@ jobs:
154
157
# working-directory: test
155
158
156
159
- name : Enable tests
157
- run : echo "TEST_COMMAND=npm test -- --h 127.0.0.1 --port 3000" >> $GITHUB_ENV
160
+ run : echo "TEST_COMMAND=cd ts-test;
161
+ npm install typescript --save-dev;
162
+ npx tsc;
163
+ cd ..;
164
+ npm run test dist/ -- --h 127.0.0.1 --port 3000" >> $GITHUB_ENV
158
165
159
166
# - name: Disable tests (only run basic import test)
160
167
# if: ${{ !inputs.run_tests }}
@@ -215,7 +222,8 @@ jobs:
215
222
nodejs : [
216
223
["v108", 18],
217
224
["v115", 20],
218
- ["v127", 22]
225
+ ["v127", 22],
226
+ ['v131', 23]
219
227
]
220
228
runs-on : macos-13
221
229
steps :
@@ -529,51 +537,63 @@ jobs:
529
537
cd testDir
530
538
bun link aerospike
531
539
532
- test-typescript-install :
533
- runs-on : ubuntu-22.04
534
- needs : [manylinux, macOS-x86]
535
- steps :
536
- - uses : actions/checkout@v2
537
- with :
538
- submodules : recursive
539
-
540
- - uses : ./.github/workflows/combine-bindings/
541
-
542
- - uses : actions/setup-node@v4
543
- with :
544
- node-version : ${{ env.LOWEST_SUPPORTED_NODEJS_VERSION }}
545
- architecture : ' x64'
546
-
547
- - if : ${{ contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
548
- uses : docker/login-action@v3
549
- with :
550
- username : ${{ secrets.DOCKER_HUB_BOT_USERNAME }}
551
- password : ${{ secrets.DOCKER_HUB_BOT_PW }}
552
-
553
-
554
- - name : Run Aerospike server release candidate with latest tag
555
- if : ${{ contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
556
- run : docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server-rc:latest
557
-
558
- - name : Run Aerospike server
559
- if : ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
560
- run : docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
561
-
562
- - name : Modify the package.json
563
- run : |
564
- sudo npm install -g json
565
- json -I -f package.json -e "this.scripts.install=\"npm-run-all removeExtraBinaries build\""
566
-
567
- - name : Run tests
568
- run : |
569
- mkdir my-aerospike-project
570
- cd my-aerospike-project
571
- npm init -y
572
- npm install typescript ts-node --save-dev
573
- npm install ..
574
- cp ../examples/typescript.ts index.ts
575
- npx tsc index.ts
576
- node index.js
577
-
578
-
579
-
540
+ # test-typescript-install:
541
+ # runs-on: ubuntu-22.04
542
+ # needs: [manylinux, macOS-x86]
543
+ # steps:
544
+ # - uses: actions/checkout@v2
545
+ # with:
546
+ # submodules: recursive
547
+ #
548
+ # - uses: ./.github/workflows/combine-bindings/
549
+ #
550
+ # - uses: actions/setup-node@v4
551
+ # with:
552
+ # node-version: ${{ env.LOWEST_SUPPORTED_NODEJS_VERSION }}
553
+ # architecture: 'x64'
554
+ #
555
+ # - if: ${{ contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
556
+ # uses: docker/login-action@v3
557
+ # with:
558
+ # username: ${{ secrets.DOCKER_HUB_BOT_USERNAME }}
559
+ # password: ${{ secrets.DOCKER_HUB_BOT_PW }}
560
+ #
561
+ #
562
+ # - name: Run Aerospike server release candidate with latest tag
563
+ # if: ${{ contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
564
+ # run: docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server-rc:latest
565
+ #
566
+ # - name: Run Aerospike server
567
+ # if: ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
568
+ # run: |
569
+ # cd ts-test;
570
+ # npm i --save-dev @types/mocha;
571
+ # npm i --save-dev @types/yargs;
572
+ # npm i --save-dev @types/semver;
573
+ # npm i --save-dev @types/chai;
574
+ # tsc;
575
+ # cd ..;
576
+ # npm install;
577
+ # docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
578
+ #
579
+ #
580
+ #
581
+ # - name: Wait for database to be ready
582
+ # # Should be ready after 3 seconds
583
+ # run: sleep 15
584
+ #
585
+ # - name: Modify the package.json
586
+ # run: |
587
+ # sudo npm install -g json
588
+ # json -I -f package.json -e "this.scripts.install=\"npm-run-all removeExtraBinaries build\""
589
+ #
590
+ # - name: Run tests
591
+ # run: |
592
+ # mkdir my-aerospike-project
593
+ # cd my-aerospike-project
594
+ # npm init -y
595
+ # npm install typescript ts-node --save-dev
596
+ # npm install ..
597
+ # cp ../examples/typescript.ts index.ts
598
+ # npx tsc index.ts
599
+ # node index.js
0 commit comments