diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 629298a..34485ef 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -4,7 +4,7 @@ on: push: branches: - main - - dbt-deploy + - e2e-tests workflow_dispatch: inputs: workspace_id: diff --git a/e2e-setup/mocks/git.sh b/e2e-setup/mocks/git.sh new file mode 100755 index 0000000..8365d3e --- /dev/null +++ b/e2e-setup/mocks/git.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# hack to mock git commands as part of action.yaml so that we could simulate dags only deploy scenario without making any additional commits + +# Check if the script was invoked with "git diff" +if [[ "$1" == "diff" ]]; then + echo "e2e-setup/astro-project/dags/exampledag.py" +elif [[ "$1" == "fetch" ]]; then + echo "Handling git fetch, doing nothing" +else + echo "Error: git mock script isn't configured to handle $1" >&2 + exit 1 +fi \ No newline at end of file