Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DomPeliniAerospike committed Oct 21, 2024
1 parent 894768b commit 5b5c6b9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ jobs:
# working-directory: test

- name: Enable tests
run: echo "TEST_COMMAND=npm run ts-test -- --h 127.0.0.1 --port 3000" >> $GITHUB_ENV
run: echo "TEST_COMMAND=cd ts-test;
npm install typescript --save-dev;
npx tsc;
cd ..;
npm run ts-test -- --h 127.0.0.1 --port 3000" >> $GITHUB_ENV

# - name: Disable tests (only run basic import test)
# if: ${{ !inputs.run_tests }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ jobs:

- name: Run Aerospike server
if: ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
run: docker run -d -v $(pwd)/.github/assets/aerospike.conf:/etc/aerospike/aerospike.conf --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
run: docker run -d -v $(pwd)/.github/assets/aerospike.conf:/etc/aerospike/aerospike.conf --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server --config-file /etc/aerospike/aerospike.conf

- name: Wait for database to be ready
# Should be ready after 3 seconds
Expand Down Expand Up @@ -332,8 +332,8 @@ jobs:
npm install typescript --save-dev;
npx tsc;
cd ..;
npm run ts-test ts-test -- --h localhost --U admin --P admin --t 40000 tests/admin.js
npm run ts-test tests/admin.js -- --h localhost --U admin --P admin --t 40000
test-ee
test-valgrind:
runs-on: ubuntu-latest
needs: build-ubuntu
Expand Down Expand Up @@ -387,7 +387,7 @@ jobs:

- name: Run Aerospike server
if: ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
run: docker run -d -v $(pwd)/.github/assets/aerospike.conf:/etc/aerospike/aerospike.conf --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
run: docker run -d -v $(pwd)/.github/assets/aerospike.conf:/etc/aerospike/aerospike.conf --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server

- name: Wait for database to be ready
# Should be ready after 3 seconds
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"install": "npm run build",
"build": "node-pre-gyp install --fallback-to-build",
"test": "mocha test",
"ts-test": "rm -rf ts-test/dist; cd ts-test; npx tsc ; cp tests/udf.lua dist/udf.lua ; mocha dist",
"ts-test": "rm -rf ts-test/dist; cd ts-test; npx tsc ; cp tests/udf.lua dist/udf.lua ; mocha dist/",
"test-dry-run": "mocha --dry-run",
"test-noserver": "GLOBAL_CLIENT=false mocha -g '#noserver'",
"lint": "standard",
Expand Down

0 comments on commit 5b5c6b9

Please sign in to comment.