Bump GitHub.Copilot.SDK from 1.0.3 to 1.0.6 #3435
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: .NET CI | |
| on: | |
| pull_request: | |
| branches: ["*"] | |
| paths: | |
| - "src/**" | |
| - "examples/**" | |
| - "tests/**" | |
| - "tests-app-hosts/**" | |
| - "eng/testing/generate-test-list-for-workflow.sh" | |
| - "eng/testing/select-affected-tests.cs" | |
| - Directory.Build.props | |
| - Directory.Build.targets | |
| - Directory.Packages.props | |
| - ".github/workflows/**" | |
| - ".github/actions/**" | |
| - "CommunityToolkit.Aspire.slnx" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [windows-latest, ubuntu-latest] | |
| fail-fast: false | |
| runs-on: "${{ matrix.os }}" | |
| env: | |
| DOTNET_CONFIGURATION: Release | |
| DAPR_VERSION: "1.15.0" | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Setup Runtimes, Caching, and Tools | |
| uses: ./.github/actions/setup-runtimes-caching | |
| with: | |
| name: "Full" | |
| docker-username: ${{ secrets.DOCKER_USERNAME }} | |
| docker-password: ${{ secrets.DOCKER_PASSWORD }} | |
| docker-registry: ${{ secrets.CUSTOM_CONTAINER_REGISTRY }} | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore --configuration ${{ env.DOTNET_CONFIGURATION }} | |
| affected-tests: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| outputs: | |
| has-tests: ${{ steps.select.outputs.has_tests }} | |
| reason: ${{ steps.select.outputs.reason }} | |
| run-all: ${{ steps.select.outputs.run_all }} | |
| selected-tests: ${{ steps.select.outputs.selected_tests }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Select affected tests | |
| id: select | |
| run: > | |
| dotnet run eng/testing/select-affected-tests.cs -- | |
| --repo-root "${{ github.workspace }}" | |
| --base-sha "${{ github.event.pull_request.base.sha }}" | |
| --head-sha "${{ github.event.pull_request.head.sha }}" | |
| --output-dir "${{ runner.temp }}/affected-tests" | |
| - name: Upload affected test selection | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: affected-tests-selection | |
| path: ${{ runner.temp }}/affected-tests/** | |
| run-tests: | |
| needs: affected-tests | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/tests.yaml | |
| with: | |
| selected-tests: ${{ needs.affected-tests.outputs.selected-tests }} | |
| secrets: inherit | |
| package: | |
| uses: ./.github/workflows/package.yml | |
| with: | |
| version_suffix: "alpha.${{ github.run_number }}" | |
| needs: run-tests | |
| if: ${{ github.actor != 'dependabot[bot]' }} | |
| publish-azure-artifacts: | |
| if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository | |
| needs: package | |
| runs-on: windows-latest | |
| environment: | |
| name: azure-artifacts | |
| steps: | |
| - name: Download package | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: nuget-packages | |
| - name: Add AzDO NuGet feed | |
| run: > | |
| dotnet nuget add source | |
| https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-PullRequests/nuget/v3/index.json | |
| --name PullRequests | |
| --username dummy | |
| --password ${{ secrets.DEVOPS_PACKAGE_PUSH_TOKEN }} | |
| - name: Push signed packages to AzDO | |
| run: > | |
| dotnet nuget push | |
| "${{ github.workspace }}/**/*.nupkg" | |
| --api-key dummy | |
| --source PullRequests | |
| --skip-duplicate | |
| publish-coverage: | |
| if: github.actor != 'dependabot[bot]' | |
| needs: run-tests | |
| uses: ./.github/workflows/code-coverage.yml | |
| secrets: inherit |