diff --git a/.github/workflows/test-dotnet.yml b/.github/workflows/test-dotnet.yml index bd2cbe5..248ec3a 100644 --- a/.github/workflows/test-dotnet.yml +++ b/.github/workflows/test-dotnet.yml @@ -28,4 +28,9 @@ jobs: - name: Setup dotnet ${{ matrix.dotnet-version }} uses: ./ with: - dotnet-version: ${{ matrix.dotnet-version }} \ No newline at end of file + dotnet-version: ${{ matrix.dotnet-version }} + - name: Check installed version + shell: pwsh + run: | + $version = & dotnet --version + if (-not $version.StartsWith(${{ matrix.dotnet-version }})) { throw "Unexpected version" } \ No newline at end of file