7878
7979 - name : setup project
8080 uses : ./.github/actions/setup-project
81+ with :
82+ range : " e2e"
8183
8284 - name : List cases for schedule or pull request
8385 id : schedule-cases
8789 cases=`find . -wholename "*.tests.ts" | jq -Rsc '[split("\n") | .[]| select(.!="")]'`
8890 echo "cases=$cases" >> $GITHUB_OUTPUT
8991
90-
9192 - name : List cases for pull request
9293 id : pr-cases
9394 if : ${{ github.event_name == 'pull_request' }}
@@ -189,19 +190,15 @@ jobs:
189190 with :
190191 node-version : 22
191192
192- - name : Setup node for SPFx project
193- if : contains(matrix.cases, 'SPFx')
194- uses : actions/setup-node@v3
195- with :
196- node-version : 22
197-
198193 - name : Setup node for Retail project
199194 if : contains(matrix.cases, 'Retail')
200195 uses : actions/setup-node@v3
201196 with :
202197 node-version : 18
203198
199+ # Azure Function is not used in templates now
204200 - name : Setup Azure Functions Core Tools For Linux
201+ if : contains(matrix.cases, 'samples')
205202 run : |
206203 curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
207204 sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
@@ -220,10 +217,11 @@ jobs:
220217 uses : actions/setup-dotnet@v3
221218 with :
222219 dotnet-version : |
223- 6.0.x
224220 8.0.x
225221
222+ # Python is not used in templates now
226223 - name : Setup Python
224+ if : contains(matrix.cases, 'samples')
227225 uses : actions/setup-python@v5
228226 with :
229227 python-version : ' 3.11'
@@ -232,7 +230,7 @@ jobs:
232230
233231 - name : Setup project
234232 run : |
235- npm run setup
233+ npm run setup:e2e
236234
237235 - name : install cli with specific version
238236 if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.cli-version != '' }}
0 commit comments