Skip to content

Commit

Permalink
testing snowsql
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-tmathew committed May 6, 2024
1 parent 7cf619f commit 4e9ae5b
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/dev-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
SNOWSQL_MAJOR_VERSION: "1.2"
SNOWSQL_PATCH_VERSION: "28"
SNOWSQL_DOWNLOAD_DIR: "/home/runner/downloads"
SNOWSQL_DEST: "/home/runner/.snowsql/bin"
SNOWSQL_LOGIN_SHELL: "/home/runner/.profile"
# SNOWSQL_DEST: "/home/runner/.snowsql/bin"
# SNOWSQL_LOGIN_SHELL: "/home/runner/.profile"
MY_SNOWSQL_CONFIG_FILE: "/home/runner/.snowsql/config"
run: |
apt-get update -y && apt-get upgrade -y && apt-get install -y curl unzip bash
Expand All @@ -61,7 +61,7 @@ jobs:
variable_substitution = True
log_file = /home/runner/.snowsql/log
EOL
- name: Test Basics Demo
- name: Test Snowsql
env:
SNOWSQL_PWD: ${{ env.SNOWFLAKE_PASSWORD }}
SNOWSQL_ACCOUNT: ${{ env.SNOWFLAKE_ACCOUNT }}
Expand All @@ -70,9 +70,19 @@ jobs:
SNOWSQL_WAREHOUSE: ${{ env.SNOWFLAKE_WAREHOUSE }}
SNOWSQL_ROLE: ${{ env.SNOWFLAKE_ROLE }}
MY_TARGET_SCHEMA: BASICS_DEMO_${{ env.SCHEMACHANGE_BUILD_ID }}
run: |
snowsql -D v_target_schema_name=$MY_TARGET_SCHEMA -f ./demo/setup/basics_demo.sql
snowsql -D v_target_schema_name=$MY_TARGET_SCHEMA -f ./demo/teardown/basics_demo.sql
run: snowsql -v
# - name: Test Basics Demo
# env:
# SNOWSQL_PWD: ${{ env.SNOWFLAKE_PASSWORD }}
# SNOWSQL_ACCOUNT: ${{ env.SNOWFLAKE_ACCOUNT }}
# SNOWSQL_USER: ${{ env.SNOWFLAKE_USER }}
# SNOWSQL_DATABASE: ${{ env.SNOWFLAKE_DATABASE }}
# SNOWSQL_WAREHOUSE: ${{ env.SNOWFLAKE_WAREHOUSE }}
# SNOWSQL_ROLE: ${{ env.SNOWFLAKE_ROLE }}
# MY_TARGET_SCHEMA: BASICS_DEMO_${{ env.SCHEMACHANGE_BUILD_ID }}
# run: |
# snowsql -D v_target_schema_name=$MY_TARGET_SCHEMA -f ./demo/setup/basics_demo.sql
# snowsql -D v_target_schema_name=$MY_TARGET_SCHEMA -f ./demo/teardown/basics_demo.sql
#- name: Setup SnowCLI connection file
# run: |
# echo "[connections]" > config.toml
Expand Down

0 comments on commit 4e9ae5b

Please sign in to comment.