Skip to content

Nightly dbt regression tests #73

Nightly dbt regression tests

Nightly dbt regression tests #73

name: Nightly dbt regression tests
on:
workflow_dispatch:
inputs:
send-slack-message:
description: 'whether to send a message to #daq-release-notifications on completion'
default: 'no'
schedule:
- cron: "0 10 * * *"
jobs:
run_dbt_commands:
name: Run dbt test script
runs-on: daq
defaults:
run:
shell: bash
steps:
- name: Checkout daq-release
uses: actions/checkout@v4
with:
path: daq-release-dbt-tests
- name: Run dbt test script
run: |
cd daq-release-dbt-tests/scripts
./test_daq-buildtools.sh
send_slack_message:
if: (github.event_name != 'workflow_dispatch' && failure()) || (github.event_name == 'workflow_dispatch' && github.event.inputs.send-slack-message == 'yes')
needs: run_dbt_commands
uses: ./.github/workflows/slack-notification.yml
with:
workflow_success: ${{ needs.run_dbt_commands.result == 'success' }}
secrets:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
cleanup_test_area:
runs-on: daq
if: always()
needs: run_dbt_commands
steps:
- name: Remove test directory
run: |
rm -rf daq-release-dbt-tests