feat: add studioctl apps search #2016
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: Designer Backend - Build and test | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, ready_for_review, converted_to_draft, closed] | |
| paths: | |
| - 'src/Designer/backend/**' | |
| - 'src/Designer/testdata/**' | |
| - 'src/App/template/**' | |
| - '.github/workflows/designer-backend-dotnet-test.yaml' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| analyze: | |
| if: ${{ github.event_name != 'pull_request' || (github.event.action != 'closed' && !github.event.pull_request.draft) }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest,windows-latest,macos-latest] | |
| name: Run dotnet build and test | |
| runs-on: ${{ matrix.os}} | |
| timeout-minutes: 30 | |
| env: | |
| DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE: false | |
| steps: | |
| - name: Enable long paths for git on Windows | |
| if: matrix.os == 'windows-latest' | |
| run: git config --system core.longpaths true | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5 | |
| with: | |
| dotnet-version: | | |
| 9.0.x | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
| - name: Build | |
| run: | | |
| dotnet build backend/Designer.sln -v m | |
| working-directory: src/Designer | |
| - name: Test | |
| run: | | |
| dotnet test backend/Designer.sln --filter FullyQualifiedName~AppDevelopmentController --no-build || exit 1; | |
| dotnet test backend/Designer.sln --filter FullyQualifiedName~PolicyControllerTests --no-build || exit 1; | |
| dotnet test backend/Designer.sln --filter FullyQualifiedName~PreviewController --no-build || exit 1; | |
| dotnet test backend/Designer.sln --filter FullyQualifiedName~DataModelsController --no-build || exit 1; | |
| dotnet test backend/Designer.sln --filter FullyQualifiedName~ResourceAdminController --no-build || exit 1; | |
| dotnet test backend/Designer.sln --filter FullyQualifiedName~TextController --no-build || exit 1; | |
| dotnet test backend/Designer.sln --filter "(Category!=GiteaIntegrationTest)&(Category!=StudioOidcGiteaIntegrationTest)&(FullyQualifiedName~RepositoryController)" --no-build || exit 1; | |
| dotnet test backend/Designer.sln --filter "(Category!=GiteaIntegrationTest)&(Category!=StudioOidcGiteaIntegrationTest)&(Category!=DbIntegrationTest)&(FullyQualifiedName!~AppDevelopmentController)&(FullyQualifiedName!~PreviewController)&(FullyQualifiedName!~PolicyControllerTests)&(FullyQualifiedName!~DataModelsController)&(FullyQualifiedName!~ResourceAdminController)&(FullyQualifiedName!~TextController)&(FullyQualifiedName!~RepositoryController)" -v m --no-build | |
| working-directory: src/Designer |