dbt_test #41
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: dbt_test | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 12 * * 0" # cron expected to run after data ingestion is done | |
| jobs: | |
| dbt_test_job: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout_repository | |
| uses: actions/checkout@v3 | |
| - name: write_gcs_credentials | |
| run: echo '${{ secrets.GCS_KEYFILE }}' > keyfile.json | |
| - name: build_and_run_dbt | |
| run: | | |
| docker build -t dbt-container . | |
| docker run --rm \ | |
| -v ${{ github.workspace }}/keyfile.json:/keyfile.json \ | |
| dbt-container dbt test |