From e8739b5fbc1711b5db0d509fc2dda69c933d2acf Mon Sep 17 00:00:00 2001 From: Dominic Pelini Date: Thu, 17 Oct 2024 07:21:23 -0600 Subject: [PATCH] test fix --- .github/workflows/build-bindings.yml | 22 ++++++++++++++++++++-- .github/workflows/tests.yml | 8 ++++---- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-bindings.yml b/.github/workflows/build-bindings.yml index 14d43a94..86f3bd33 100644 --- a/.github/workflows/build-bindings.yml +++ b/.github/workflows/build-bindings.yml @@ -141,7 +141,16 @@ jobs: - name: Run Aerospike server if: ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }} - run: docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server aerospike:ce-7.2.0.1_1 + run: | + cd ts-test; + npm i --save-dev @types/mocha; + npm i --save-dev @types/yargs; + npm i --save-dev @types/semver; + npm i --save-dev @types/chai; + npm install ..; + tsc; + cd ..; + docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server @@ -559,7 +568,16 @@ jobs: - name: Run Aerospike server if: ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }} - run: docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server aerospike:ce-7.2.0.1_1 + run: | + cd ts-test; + npm i --save-dev @types/mocha; + npm i --save-dev @types/yargs; + npm i --save-dev @types/semver; + npm i --save-dev @types/chai; + npm install ..; + tsc; + cd ..; + docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8a9eb851..d65a33f0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -170,7 +170,7 @@ jobs: npm install ..; tsc; cd ..; - npm run ts-test ; + npm run run ts-test -- --h 127.0.0.1 --port 3000 ; test-ce: runs-on: ubuntu-latest @@ -246,7 +246,7 @@ jobs: npm install ..; tsc; cd ..; - npm run ts-test; + npm run ts-test -- --h 127.0.0.1 --port 3000; test-lowest-supported-server: runs-on: ubuntu-latest @@ -301,7 +301,7 @@ jobs: working-directory: ts-test - name: Run tests - run: npm run ts-test -- --t 20000 + run: npm run ts-test -- --h 127.0.0.1 --port 3000 --t 20000 test-ee: runs-on: ubuntu-latest @@ -365,7 +365,7 @@ jobs: working-directory: ts-test - name: Run tests - run: npm run ts-test -- --h localhost --U admin --P admin --t 40000 test/admin.js + run: npm run ts-test -- --h 127.0.0.1 --port 3000 --U admin --P admin --t 40000 test/admin.js test-valgrind: runs-on: ubuntu-latest