7676 RUN_ID : ${{ github.run_id }}
7777 run : pnpm exec tsx scripts/cleanup-e2e-workspaces.ts --run-id="${RUN_ID}-sdk"
7878
79+ seed-plugin-e2e :
80+ needs : changes
81+ if : needs.changes.outputs.should_run == 'true'
82+ runs-on : ubuntu-latest
83+ name : sdk-plugin-seed e2e
84+ permissions :
85+ contents : read
86+ timeout-minutes : 20
87+ steps :
88+ - name : checkout
89+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
90+ with :
91+ persist-credentials : " false"
92+
93+ - name : Install deps
94+ uses : ./.github/actions/install-deps
95+
96+ - name : Login as machine user
97+ run : pnpm tailor login --machine-user
98+ env :
99+ TAILOR_PLATFORM_MACHINE_USER_CLIENT_ID : ${{ secrets.PLATFORM_MACHINE_USER_CLIENT_ID }}
100+ TAILOR_PLATFORM_MACHINE_USER_CLIENT_SECRET : ${{ secrets.PLATFORM_MACHINE_USER_CLIENT_SECRET }}
101+
102+ - name : Run sdk-plugin-seed e2e tests
103+ working-directory : packages/sdk-plugin-seed
104+ run : pnpm run test --project e2e
105+ env :
106+ TAILOR_PLATFORM_E2E_RUN_ID : ${{ github.run_id }}-seed-plugin
107+ TAILOR_PLATFORM_ORGANIZATION_ID : ${{ secrets.TAILOR_PLATFORM_ORGANIZATION_ID }}
108+ TAILOR_PLATFORM_FOLDER_ID : ${{ secrets.TAILOR_PLATFORM_FOLDER_ID }}
109+ TAILOR_PLATFORM_WORKSPACE_REGION : us-west
110+
111+ - name : Cleanup e2e workspaces
112+ if : always()
113+ working-directory : packages/sdk
114+ env :
115+ RUN_ID : ${{ github.run_id }}
116+ run : pnpm exec tsx scripts/cleanup-e2e-workspaces.ts --run-id="${RUN_ID}-seed-plugin"
117+
79118 template-workflow-e2e :
80119 needs : changes
81120 if : needs.changes.outputs.should_run == 'true'
@@ -118,7 +157,7 @@ jobs:
118157
119158 sdk-e2e-result :
120159 name : SDK E2E result
121- needs : [changes, sdk-e2e, template-workflow-e2e]
160+ needs : [changes, sdk-e2e, seed-plugin-e2e, template-workflow-e2e]
122161 if : >-
123162 always() &&
124163 (github.event.action != 'synchronize' || github.event.sender.login != 'tailor-pr-trigger[bot]')
@@ -131,6 +170,7 @@ jobs:
131170 CHANGES_RESULT : ${{ needs.changes.result }}
132171 SHOULD_RUN : ${{ needs.changes.outputs.should_run }}
133172 SDK_E2E_RESULT : ${{ needs.sdk-e2e.result }}
173+ SEED_PLUGIN_E2E_RESULT : ${{ needs.seed-plugin-e2e.result }}
134174 TEMPLATE_WORKFLOW_E2E_RESULT : ${{ needs.template-workflow-e2e.result }}
135175 run : |
136176 # Fail closed: if the paths-filter job itself failed, should_run is
@@ -147,6 +187,10 @@ jobs:
147187 echo "SDK package e2e job failed"
148188 exit 1
149189 fi
190+ if [[ "$SEED_PLUGIN_E2E_RESULT" != "success" ]]; then
191+ echo "sdk-plugin-seed e2e job failed"
192+ exit 1
193+ fi
150194 if [[ "$TEMPLATE_WORKFLOW_E2E_RESULT" != "success" ]]; then
151195 echo "Template workflow e2e job failed"
152196 exit 1
0 commit comments