[Backport 1.11.latest] set unit test config.enabled to False if it is testing a disabled model #4755
Workflow file for this run
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: Check Artifact Changes | |
| on: | |
| pull_request: | |
| types: [ opened, reopened, labeled, unlabeled, synchronize ] | |
| paths-ignore: [ '.changes/**', '.github/**', 'tests/**', '**.md', '**.yml' ] | |
| merge_group: | |
| types: [checks_requested] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-artifact-changes: | |
| runs-on: ${{ vars.UBUNTU_LATEST }} | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'artifact_minor_upgrade') }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check for changes in core/dbt/artifacts | |
| # https://github.com/marketplace/actions/paths-changes-filter | |
| uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # dorny/paths-filter@v3 | |
| id: check_artifact_changes | |
| with: | |
| filters: | | |
| artifacts_changed: | |
| - 'core/dbt/artifacts/**' | |
| list-files: shell | |
| - name: Fail CI if artifacts have changed | |
| if: steps.check_artifact_changes.outputs.artifacts_changed == 'true' | |
| run: | | |
| echo "CI failure: Artifact changes checked in core/dbt/artifacts directory." | |
| echo "Files changed: ${{ steps.check_artifact_changes.outputs.artifacts_changed_files }}" | |
| echo "To bypass this check, confirm that the change is not breaking (https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/artifacts/README.md#breaking-changes) and add the 'artifact_minor_upgrade' label to the PR. Modifications and additions to all fields require updates to https://github.com/dbt-labs/dbt-jsonschema." | |
| exit 1 | |
| - name: CI check passed | |
| if: steps.check_artifact_changes.outputs.artifacts_changed == 'false' | |
| run: | | |
| echo "No prohibited artifact changes found in core/dbt/artifacts. CI check passed." |