Repository navigation
62 lines (48 loc) · 1.99 KB
/
Copy pathbit.ci.BlazorUI.yml
File metadata and controls
62 lines (48 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: bit platform CI - BlazorUI
on:
workflow_dispatch:
workflow_call:
pull_request:
paths:
- 'src/BlazorUI/**'
- 'src/Minifier/**'
env:
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true
permissions:
contents: read
jobs:
build-BlazorUI:
if: startsWith(github.event.pull_request.title, 'Prerelease') != true && startsWith(github.event.pull_request.title, 'Release') != true && startsWith(github.event.pull_request.title, 'Version') != true
name: build Bit.BlazorUI
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup .NET 10.0
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
global-json-file: src/global.json
- name: Setup .NET 9.0
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
dotnet-version: 9.0.x
- name: Setup .NET 8.0
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
dotnet-version: 8.0.x
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
- name: dotnet workload restore
run: cd src/BlazorUI && dotnet workload restore
# BuildAllTfms=true opts back into net9.0 and net8.0, which the Debug configuration skips so that local
# inner-loop builds only compile the TFM the demo and the tests actually run on.
- name: dotnet build
run: dotnet build src/BlazorUI/Bit.BlazorUI.slnx -p:BuildAllTfms=true
- name: Test
run: cd src/BlazorUI/Tests/Bit.BlazorUI.Tests && dotnet test --no-build --verbosity normal -p:BuildAllTfms=true
# The MCP server suite boots the demo server as a child process and talks to it over HTTP (about a minute).
- name: Test MCP server
run: dotnet run --project src/BlazorUI/Tests/Bit.BlazorUI.Tests.Mcp