rename scheduled workflows and variables #2
This file contains 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
# **what?** | ||
# The purpose of this workflow is to trigger CI to run for each release | ||
# branch on a regular cadence. If the CI workflow fails for a branch, it | ||
# will post to dev-core-alerts to raise awareness. | ||
# | ||
# **why?** | ||
# Ensures release branches are always shippable and not broken. | ||
# Also, can catch any dependencies shifting beneath us that might | ||
# introduce breaking changes (could also impact Cloud). | ||
# **when?** | ||
# - daily based on DBT_DAILY_CHECKS_SCHEDULE | ||
# - manually | ||
name: "Daily checks" | ||
on: | ||
schedule: | ||
- cron: ${{ vars.DBT_DAILY_CHECKS_SCHEDULE }} | ||
workflow_dispatch: | ||
permissions: read-all | ||
jobs: | ||
code-quality: | ||
name: "Code quality" | ||
uses: ./.github/workflows/code-quality.yml | ||
strategy: | ||
matrix: | ||
branch: ${{ fromJSON(vars.DBT_DAILY_CHECKS_BRANCHES) }} | ||
with: | ||
branch: ${{ matrix.branch }} | ||
unit-tests: | ||
name: "Unit tests" | ||
uses: ./.github/workflows/unit-tests.yml | ||
strategy: | ||
matrix: | ||
branch: ${{ fromJSON(vars.DBT_DAILY_CHECKS_BRANCHES) }} | ||
with: | ||
branch: ${{ matrix.branch }} | ||
integration-tests: | ||
name: "Integration tests" | ||
uses: ./.github/workflows/integration-tests.yml | ||
strategy: | ||
matrix: | ||
branch: ${{ fromJSON(vars.DBT_DAILY_CHECKS_BRANCHES) }} | ||
with: | ||
branch: ${{ matrix.branch }} | ||
build-artifacts: | ||
name: "Build artifacts" | ||
uses: dbt-labs/actions/.github/workflows/build-artifacts.yml@add-hatch-actions | ||
strategy: | ||
matrix: | ||
branch: ${{ fromJSON(vars.DBT_DAILY_CHECKS_BRANCHES) }} | ||
with: | ||
branch: ${{ matrix.branch }} | ||
post-failure: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
if: ${{ failure() }} | ||
steps: | ||
- name: Posting scheduled run failures | ||
uses: ravsamhq/notify-slack-action@v2 | ||
if: ${{ github.event_name == 'schedule' }} | ||
with: | ||
notification_title: 'Redshift nightly integration test failed' | ||
status: ${{ job.status }} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_ADAPTER_ALERTS }} |