Skip to content

Commit e4dde76

Browse files
committed
chore(cicd): use release to test dev and checks yamls
1 parent c590163 commit e4dde76

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/dev.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,14 @@ jobs:
204204
uses: actions/setup-node@v4
205205
with:
206206
node-version: '20'
207+
207208

208209
- name: Install npm packages so we have gulp for retrieving TEL Frontend Css
209210
run: npm ci
210211
#CI is an install that adheres to package-lock
212+
213+
- name: Install wasm-tools workload (wasm-tools used for delinking so can test against optimised client wasm using TELBlazor package)
214+
run: dotnet workload install wasm-tools --skip-manifest-update --source https://api.nuget.org/v3/index.json
211215

212216
- name: Build TELBlazor.Components (it publishes on build)
213217
run: |
@@ -301,6 +305,9 @@ jobs:
301305

302306
- name: Install npm packages so we have gulp for retrieving TEL Frontend Css
303307
run: npm ci
308+
309+
- name: Install wasm-tools workload (wasm-tools used for delinking so can test against optimised client wasm using TELBlazor package)
310+
run: dotnet workload install wasm-tools --skip-manifest-update --source https://api.nuget.org/v3/index.json
304311

305312
- name: Build solution without generating new package
306313
run: |

.github/workflows/reuseable-ci-checks.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,6 @@ jobs:
200200
- name: Replace local environment variable in nuget config because cant provide it as a parameter
201201
run: |
202202
sed -i "s|%TEL_BLAZOR_PACKAGE_SOURCE%|$LOCAL_PACKAGES_PATH|g" nuget.config
203-
# sed -i "s|%GITHUB_USERNAME%|$GITHUB_USERNAME|g" nuget.config
204-
# sed -i "s|%TEL_GIT_PACKAGES_TOKEN%|$TEL_GIT_PACKAGES_TOKEN|g" nuget.config
205203
206204
- name: Clean lock files because the newly generated package file will superseed the locks
207205
run: |
@@ -239,29 +237,29 @@ jobs:
239237

240238
- name: Build and create package locally
241239
run: |
242-
dotnet build TELBlazor.Components -c Debug \
240+
dotnet build TELBlazor.Components -c Release \
243241
/p:TELBlazorPackageVersion=$TELBLAZOR_PACKAGE_VERSION \
244242
/p:NugetPackagesOutputPath=$NUGET_PACKAGES_OUTPUT_PATH \
245243
/p:UseTELBlazorComponentsProjectReference=$USE_TEL_BLAZOR_COMPONENTS_PROJECT_REFERENCE \
246244
/p:DisablePackageGeneration=false
247245
248246
- name: Build solution without generating new package
249247
run: |
250-
dotnet build TELBlazor.sln -c Debug \
248+
dotnet build TELBlazor.sln -c Release \
251249
/p:TELBlazorPackageVersion=$TELBLAZOR_PACKAGE_VERSION \
252250
/p:NugetPackagesOutputPath=$NUGET_PACKAGES_OUTPUT_PATH \
253251
/p:UseTELBlazorComponentsProjectReference=$USE_TEL_BLAZOR_COMPONENTS_PROJECT_REFERENCE \
254252
/p:DisablePackageGeneration=true
255253
256254
257255
- name: Ensure browsers are installed
258-
run: pwsh TELBlazor.Components.ShowCase.E2ETests/bin/Debug/net8.0/playwright.ps1 install --with-deps
256+
run: pwsh TELBlazor.Components.ShowCase.E2ETests/bin/Release/net8.0/playwright.ps1 install --with-deps
259257

260258

261259
- name: Run tests with coverage threshold check
262260
id: unit_e2e_tests
263261
run: |
264-
dotnet test --no-build --no-restore \
262+
dotnet test --no-build --no-restore -c Release \
265263
/p:TELBlazorPackageVersion=$TELBLAZOR_PACKAGE_VERSION \
266264
/p:NugetPackagesOutputPath=$NUGET_PACKAGES_OUTPUT_PATH \
267265
/p:UseTELBlazorComponentsProjectReference=$USE_TEL_BLAZOR_COMPONENTS_PROJECT_REFERENCE \

global.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"sdk": {
33
"version": "8.0.407",
4+
"workloadVersion": "8.0.407",
45
"rollForward": "latestMinor"
56
}
67
}

0 commit comments

Comments
 (0)