Skip to content

Commit

Permalink
Simplify test platforms & CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremySkinner committed Jul 3, 2022
1 parent eb0ea33 commit 0f215b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,10 @@ jobs:
with:
fetch-depth: 0

- name: Get SDKs to install
shell: pwsh
# Collect the SDKs we need by parsing global.json
# Supplementary sdks are stored in an "others" array.
run: |
$json = ConvertFrom-Json (Get-Content global.json -Raw)
$sdks = ($json.others + $json.sdk.version) -join ","
echo "REQUIRED_SDKS=$sdks" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Install .NET SDKs
uses: JeremySkinner/global-json-dotnet-install@master
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
versions: ${{ env.REQUIRED_SDKS }}
dotnet-version: 6.0.x

- name: Build and Test
run: ./build.ps1
Expand Down
2 changes: 1 addition & 1 deletion src/FluentValidation.Tests/FluentValidation.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>FluentValidation.Tests</AssemblyName>
<RootNamespace>FluentValidation.Tests</RootNamespace>
<IsPackable>false</IsPackable>
Expand Down

0 comments on commit 0f215b6

Please sign in to comment.