diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b1e754e99..c6bcb8840 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,6 +7,24 @@ on: branches: [ "*" ] jobs: + e2e-tests: + runs-on: ubuntu-latest + + steps: + - name: Setup yarn4 + run: | + # if [ "$AWS_BRANCH" == "main" ]; then + echo "GitHub token starts with: ${GHA_GITHUB_TOKEN:0:4}" + echo "Triggering GitHub workflow dispatch for the main branch..." + curl -X POST \ + -H "Authorization: Bearer $GHA_GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/AltimateAI/vscode-dbt-power-user-tests/actions/workflows/run-tests.yaml/dispatches \ + -d '{"ref":"main", "inputs":{"extensionBranch": "master", os: "windows-latest", dbtIntegration: "core", dbtVersion: "1.8"}}' + # else + # echo "Not on main branch. Skipping GitHub workflow dispatch." + # fi + test: strategy: matrix: