feat(Snowflake): Add Snowflake dialect #29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| ci: | |
| name: CI | |
| runs-on: ubuntu-latest | |
| env: | |
| SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }} | |
| SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }} | |
| SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }} | |
| SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }} | |
| SNOWFLAKE_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }} | |
| SNOWFLAKE_SCHEMA: ${{ secrets.SNOWFLAKE_SCHEMA }} | |
| SNOWFLAKE_PRIVATE_KEY_PATH: /tmp/snowflake_pk.p8 | |
| CLICKHOUSE_HOST: localhost | |
| CLICKHOUSE_PORT: "8123" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - run: make lint | |
| - run: make typecheck | |
| - name: Write Snowflake key file | |
| run: | | |
| umask 077 | |
| printf '%s' "${{ secrets.SNOWFLAKE_PRIVATE_KEY }}" > /tmp/snowflake_pk.p8 | |
| - name: Start ClickHouse | |
| run: docker compose up --detach --wait clickhouse | |
| - run: make test | |
| - name: Check Coverage | |
| uses: 5monkeys/cobertura-action@v14 | |
| with: | |
| minimum_coverage: 100 | |
| fail_below_threshold: true | |
| show_missing: true |