-
-
Notifications
You must be signed in to change notification settings - Fork 232
80 lines (63 loc) · 3.25 KB
/
bit.full.ci.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: bit platform full CI
on:
workflow_dispatch:
jobs:
build:
name: build and test
runs-on: ubuntu-22.04
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: src/global.json
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Bit.Boilerplate from local source
run: |
cd src/Templates/Boilerplate && dotnet build -c Release
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
dotnet new install Bit.Boilerplate.0.0.0.nupkg && cd ../../../
- name: Release build todo sample + sqlite database
run: |
dotnet workload install maui-tizen maui-android wasm-tools wasm-experimental
dotnet build TodoBPSqlite/src/Client/TodoBPSqlite.Client.Maui/TodoBPSqlite.Client.Maui.csproj -t:InstallAndroidDependencies -f:net8.0-android -p:AcceptAndroidSDKLicenses=True
dotnet new bit-bp --name TodoBPSqlite --database sqlite --sample todo --pipeline other
cd TodoBPSqlite/src/TodoBPSqlite.Server/
dotnet tool restore
dotnet ef migrations add InitialMigration
dotnet ef database update
cd ../../../
dotnet build TodoBPSqlite/TodoBPSqlite.sln -c Release -p:RunAOTCompilation=false
- name: Release build empty sample + offline db + Win exe
run: |
dotnet new bit-bp --name EmptyBP --database other --sample none --pipeline azure --offlineDb --windows
dotnet build EmptyBP/EmptyBP.sln -c Release -p:RunAOTCompilation=false -p:EnableWindowsTargeting=true
- name: Release build admin panel sample + SqlServer database
run: |
dotnet new bit-bp --name AdminBPSqlServer --database sqlserver --sample admin --pipeline github
dotnet build AdminBPSqlServer/AdminBPSqlServer.sln -c Release
- name: Release build bit blazor ui + butil + bswup + besql + bup + code analyzers + source generators
run: dotnet build src/Bit-CI-release.sln -c Release
- name: Release build careers, platform, sales websites
run: |
dotnet build -c Release src/Websites/Platform/Bit.Websites.Platform.sln
dotnet build -c Release src/Websites/Careers/Bit.Websites.Careers.sln
dotnet build -c Release src/Websites/Sales/Bit.Websites.Sales.sln
- name: Run bit blazor ui tests
run: dotnet test src/BlazorUI/Bit.BlazorUI.Tests/Bit.BlazorUI.Tests.csproj -c Release
- name: Release build bit blazor ui demo
run: dotnet build src/BlazorUI/Bit.BlazorUI.sln -c Release -p:RunAOTCompilation=false
- name: Create projects from BlazorEmpty project template with different parameters
run: |
cd src/Templates/BlazorEmpty && dotnet build -c Release
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
dotnet new install Bit.BlazorEmpty.0.0.0.nupkg && cd ../../../
dotnet new bit-empty --name AutoGlobal --interactivity Auto --all-interactive
dotnet new bit-empty --name SsrPerPage --interactivity None
- name: Release build blazor empty based projects
run: |
dotnet build AutoGlobal/AutoGlobal.sln -c Release
dotnet build SsrPerPage/SsrPerPage.csproj -c Release