Skip to content

Commit

Permalink
[CI/CD] Fix dbt installation workflows (#65)
Browse files Browse the repository at this point in the history
* Fix workflow paths
* Update workflow permissions
  • Loading branch information
alexander-smolyakov committed Jan 18, 2023
1 parent 8d93437 commit a8a0a0a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-dbt-installation-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ on:
description: Slack app webhook url
required: true

# no permissions are needed for this workflow
permissions: {}
permissions:
contents: read # required for slack-post-notification workflow

jobs:
docker-integration-test:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-dbt-installation-homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ on:
description: Slack app webhook url
required: true

# no permissions are needed for this workflow
permissions: {}
permissions:
contents: read # required for slack-post-notification workflow

jobs:
homebrew-integration-test:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/test-dbt-installation-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

name: dbt Installation Tests

permissions:
contents: read # required for slack-post-notification workflow

on:
workflow_dispatch:

Expand All @@ -24,7 +27,7 @@ jobs:
package:
["dbt-postgres", "dbt-redshift", "dbt-snowflake", "dbt-bigquery"]

uses: .github/workflows/test-dbt-installation-homebrew.yml
uses: ./.github/workflows/test-dbt-installation-homebrew.yml
with:
package_name: ${{ matrix.package }}
secrets:
Expand All @@ -44,7 +47,7 @@ jobs:
"dbt-spark",
]

uses: .github/workflows/test-dbt-installation-pip.yml
uses: ./.github/workflows/test-dbt-installation-pip.yml
with:
package_name: ${{ matrix.package }}
secrets:
Expand All @@ -64,7 +67,7 @@ jobs:
"dbt-spark",
]

uses: .github/workflows/test-dbt-installation-docker.yml
uses: ./.github/workflows/test-dbt-installation-docker.yml
with:
package_name: ${{ matrix.package }}
secrets:
Expand All @@ -84,7 +87,7 @@ jobs:
"dbt-spark",
]

uses: .github/workflows/test-dbt-installation-source.yml
uses: ./.github/workflows/test-dbt-installation-source.yml
with:
package_name: ${{ matrix.package }}
secrets:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-dbt-installation-pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ on:
description: Slack app webhook url
required: true

# no permissions are needed for this workflow
permissions: {}
permissions:
contents: read # required for slack-post-notification workflow

jobs:
pip-integration-test:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-dbt-installation-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# **why?**

# **when?**
# This reusable workflow can be called or started manually
# This reusable workflow can be called or started manually
# by specifying the package name

name: dbt Installation - Source Integration Tests
Expand All @@ -25,8 +25,8 @@ on:
description: Slack app webhook url
required: true

# no permissions are needed for this workflow
permissions: {}
permissions:
contents: read # required for slack-post-notification workflow

jobs:
source-integration-test:
Expand Down

0 comments on commit a8a0a0a

Please sign in to comment.