Version 8.7.6 (#6922) #3946
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bit platform CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- 'src/**' | |
jobs: | |
build-release: | |
if: startsWith(github.event.pull_request.title, 'Prerelease') || startsWith(github.event.pull_request.title, 'Release') || startsWith(github.event.pull_request.title, 'Version') | |
name: build and test for release | |
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 wasm and maui | |
run: cd src && dotnet workload install maui-android wasm-tools wasm-experimental | |
- name: MSBuild prerelease | |
run: dotnet build src/Bit-CI-release.sln | |
- name: Test | |
run: dotnet test --no-build --verbosity normal src/BlazorUI/Bit.BlazorUI.Tests/Bit.BlazorUI.Tests.csproj | |
build: | |
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 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 wasm and maui | |
run: cd src && dotnet workload install maui-android wasm-tools wasm-experimental | |
- name: Install Android Sdk platform tools | |
run: ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools" | |
- name: Build | |
run: dotnet build src/Bit-CI.sln -p:WarningLevel=0 -p:RunCodeAnalysis=false -p:EnableWindowsTargeting=true | |
- name: Test | |
run: dotnet test --no-build --verbosity normal src/BlazorUI/Bit.BlazorUI.Tests/Bit.BlazorUI.Tests.csproj |