Update Roslyn to 5.6.0-2.26173.1 #615
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: "Tests net6.0" | |
| env: | |
| DotNetVersion: "10.0.103" | |
| DotNetVersion2: "9.0.306" | |
| DotNetVersion3: "8.0.415" | |
| DotNetVersion4: "6.0.428" | |
| DotNetVersion5: "6.0.203" # This is the last version Mono supports. It is used for our Mono CI tests. | |
| NuGetVersion: "6.5.0" | |
| MonoVersion: "" | |
| Artifacts: ${{ github.workspace }}/artifacts/ | |
| Coverage: ${{ github.workspace }}/coverage/ | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "true" | |
| VSTEST_TESTHOST_SHUTDOWN_TIMEOUT: "1000" | |
| defaults: | |
| run: | |
| shell: pwsh | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| - feature/* | |
| tags: | |
| - "*" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-22.04, windows-latest, macos-latest] | |
| testProjects: | |
| - OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Tests,OmniSharp.Cake.Tests | |
| - OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Tests,OmniSharp.Http.Tests | |
| name: "Test" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| clean: "false" | |
| fetch-depth: "0" | |
| - name: 🔨 Use .NET Core SDKs | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: | | |
| ${{ env.DotNetVersion5 }} | |
| ${{ env.DotNetVersion4 }} | |
| ${{ env.DotNetVersion3 }} | |
| ${{ env.DotNetVersion2 }} | |
| ${{ env.DotNetVersion }} | |
| - name: Install boots (MacOS only) | |
| if: matrix.os == 'macos-latest' | |
| run: dotnet tool install -v:n boots --version 1.1.0.36 --add-source "https://api.nuget.org/v3/index.json" --global | |
| - name: Install Mono (MacOS only) | |
| if: matrix.os == 'macos-latest' | |
| run: boots https://download.mono-project.com/archive/6.12.0/macos-10-universal/MonoFramework-MDK-6.12.0.188.macos10.xamarin.universal.pkg | |
| - name: Setup NuGet.exe | |
| uses: nuget/setup-nuget@v1 | |
| with: | |
| nuget-version: ${{ env.NuGetVersion }} | |
| - name: 🎁 nuget install | |
| run: | | |
| nuget install tools/packages.config -ExcludeVersion -OutputDirectory tools | |
| - name: 🎁 dotnet tool restore | |
| run: | | |
| dotnet tool restore | |
| - name: 🍰 Run Cake | |
| uses: nick-invision/retry@v2 | |
| with: | |
| shell: bash | |
| timeout_minutes: 40 | |
| max_attempts: 3 | |
| retry_on: error | |
| command: | | |
| dotnet cake --configuration=Release --verbosity=Verbose --target=Test --test-project="$TEST_PROJECT" --use-dotnet-test | |
| env: | |
| TEST_PROJECT: ${{ matrix.testProjects }} | |
| - name: ⬆ Publish Logs | |
| uses: actions/upload-artifact@v4 | |
| continue-on-error: true | |
| if: ${{ always() }} | |
| with: | |
| name: "logs - ${{ github.workflow }} ${{ matrix.os }}" | |
| path: "${{ env.Artifacts }}/logs/" |