Repository navigation
feat(avalonia): P4 feedback components #13
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: PR Check | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| # Quick validation for PRs | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| # The example projects (examples/MAUI.Demo) need the MAUI workload and are covered | |
| # by the separate build-examples job in ci.yml. This validate job stays lightweight — | |
| # library projects + tests only, no workload install required. | |
| - name: Check formatting | |
| run: dotnet format src/ShellUI.Native.CLI/ShellUI.Native.CLI.csproj --verify-no-changes --verbosity diagnostic | |
| continue-on-error: true | |
| - name: Restore | |
| run: | | |
| dotnet restore src/ShellUI.Native.CLI/ShellUI.Native.CLI.csproj | |
| dotnet restore tests/ShellUI.Native.Tests/ShellUI.Native.Tests.csproj | |
| - name: Build | |
| run: | | |
| dotnet build src/ShellUI.Native.CLI/ShellUI.Native.CLI.csproj --no-restore --configuration Release --warnaserror | |
| dotnet build tests/ShellUI.Native.Tests/ShellUI.Native.Tests.csproj --no-restore --configuration Release --warnaserror | |
| - name: Check for package vulnerabilities | |
| run: | | |
| dotnet list src/ShellUI.Native.CLI/ShellUI.Native.CLI.csproj package --vulnerable --include-transitive | |
| dotnet list tests/ShellUI.Native.Tests/ShellUI.Native.Tests.csproj package --vulnerable --include-transitive | |
| continue-on-error: true | |
| # Label PR based on files changed | |
| label: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/labeler@v5 | |
| with: | |
| repo-token: "${{ secrets.GITHUB_TOKEN }}" |