-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.17 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: On Pull Request Run Compile
on:
push:
branches:
- main
pull_request:
jobs:
dbt_init_challenge_job:
runs-on: ubuntu-latest
name: Run sdf compile
steps:
- name: Checkout
uses: actions/checkout@v4
- name: sdf push step
uses: ./ # Uses an action in the root directory
id: sdf
with:
command: 'sdf push'
workspace_dir: 'workspace/dbt_init_challenge'
access_key: ${{ secrets.ACCESS_KEY }}
secret_key: ${{ secrets.SECRET_KEY }}
is_dbt: 'true'
snowflake_account_id: ${{ secrets.SNOWFLAKE_ACCOUNT_ID }}
snowflake_username: ${{ secrets.SNOWFLAKE_USERNAME }}
snowflake_password: ${{ secrets.SNOWFLAKE_PASSWORD }}
snowflake_role: 'dbt_test_role'
snowflake_warehouse: 'dbt_dev_wh'
dbt_target: 'dev'
# Use the output from the `sdf` step
- name: Display the sdf output
run: |
echo "### SDF Run Logs 🪵" >> $GITHUB_STEP_SUMMARY
echo '```' >>$GITHUB_STEP_SUMMARY
echo "${{ steps.sdf.outputs.log }}" >>$GITHUB_STEP_SUMMARY
echo '```' >>$GITHUB_STEP_SUMMARY