diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 12bb2cb42..546d40ea1 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -182,6 +182,6 @@ jobs: env: PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} CLOUD_PROVIDER: ${{ matrix.cloud }} - run: /usr/local/bin/bash ./ci/test_mac.sh + run: ./ci/test_ubuntu.sh diff --git a/ci/test_ubuntu.sh b/ci/test_ubuntu.sh new file mode 100755 index 000000000..94e1bd2de --- /dev/null +++ b/ci/test_ubuntu.sh @@ -0,0 +1,20 @@ +#!/bin/bash -e +# +# Test NodeJS for Ubuntu +# +set -o pipefail +THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +source $THIS_DIR/_init.sh +source $THIS_DIR/scripts/set_git_info.sh + +export WORKSPACE=$GITHUB_WORKSPACE +export SOURCE_ROOT=$GITHUB_WORKSPACE +export SHOULD_GENERATE_COVERAGE_REPORT=1 +export SHOULD_SKIP_PROXY_TESTS=1 + +python3 --version +python3 -m venv venv +source venv/bin/activate +pip3 install -U pip +pip3 install -U snowflake-connector-python +$THIS_DIR/container/test_component.sh $SHOULD_GENERATE_COVERAGE_REPORT diff --git a/test/integration/testProxyExecute.js b/test/integration/testProxyExecute.js index 866dfe43f..2ae7c291e 100644 --- a/test/integration/testProxyExecute.js +++ b/test/integration/testProxyExecute.js @@ -8,7 +8,7 @@ const os = require('os'); describe('Execute proxy test', function () { const platform = os.platform(); - if (platform === 'linux') { + if (platform === 'linux' && !process.env.SHOULD_SKIP_PROXY_TESTS) { let connection; const createNodeTSQL = 'create or replace table NodeT(colA number, colB varchar)'; const selectAllSQL = 'select * from NodeT';