Repository navigation
chore(release): v0.1.0-alpha.1 #17
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore dependencies (src + tests) | |
| run: | | |
| dotnet restore src/ShellUI.Native.CLI/ShellUI.Native.CLI.csproj | |
| dotnet restore tests/ShellUI.Native.Tests/ShellUI.Native.Tests.csproj | |
| - name: Build library projects | |
| run: dotnet build src/ShellUI.Native.CLI/ShellUI.Native.CLI.csproj --no-restore --configuration Release | |
| - name: Run tests | |
| run: dotnet test tests/ShellUI.Native.Tests/ShellUI.Native.Tests.csproj --configuration Release --no-restore --logger "trx;LogFileName=test-results.trx" --collect:"XPlat Code Coverage" | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: | | |
| tests/**/TestResults/** | |
| - name: Pack CLI tool | |
| run: dotnet pack src/ShellUI.Native.CLI/ShellUI.Native.CLI.csproj --no-restore --configuration Release -o ./nupkg | |
| - name: Upload CLI package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: shellui-native-cli | |
| path: ./nupkg/*.nupkg | |
| # Separate job for MAUI examples (requires workloads) | |
| build-examples: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Install MAUI workload | |
| run: dotnet workload install maui | |
| - name: Restore examples | |
| run: dotnet restore examples/MAUI.Demo/MAUI.Demo.csproj | |
| - name: Build MAUI Demo (Windows) | |
| run: dotnet build examples/MAUI.Demo/MAUI.Demo.csproj --configuration Release --framework net10.0-windows10.0.19041.0 |