Skip to content

Commit e85e4b7

Browse files
authored
Update workflows to use linux hosts. (#440)
1 parent 36b2684 commit e85e4b7

File tree

6 files changed

+5
-14
lines changed

6 files changed

+5
-14
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717

1818
jobs:
1919
build:
20-
runs-on: windows-latest
20+
runs-on: ubuntu-latest
2121

2222
steps:
2323
- name: Checkout
@@ -26,10 +26,7 @@ jobs:
2626
uses: actions/setup-dotnet@v4
2727
with:
2828
dotnet-version: 9.x
29-
- name: Install SQL Local DB
30-
run: ./setup-sqllocaldb.ps1
31-
shell: pwsh
3229
- name: Build
3330
run: dotnet build ci.slnf --configuration Release
3431
- name: Test
35-
run: dotnet test ci.slnf --configuration Release --no-build --no-restore
32+
run: dotnet test ci.slnf --configuration Release --no-build --no-restore --framework net9.0

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
build:
9-
runs-on: windows-latest
9+
runs-on: ubuntu-latest
1010

1111
steps:
1212
- name: Checkout
@@ -15,13 +15,10 @@ jobs:
1515
uses: actions/setup-dotnet@v4
1616
with:
1717
dotnet-version: 9.x
18-
- name: Install SQL Local DB
19-
run: ./setup-sqllocaldb.ps1
20-
shell: pwsh
2118
- name: Build
2219
run: dotnet build ci.slnf --configuration Release
2320
- name: Test
24-
run: dotnet test ci.slnf --configuration Release --no-build --no-restore
21+
run: dotnet test ci.slnf --configuration Release --no-build --no-restore --framework net9.0
2522
- name: Pack
2623
run: dotnet pack ci.slnf --configuration Release --no-build --no-restore --output .
2724
- name: Push to NuGet

coverage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ testtarget="ci.slnf"
1717
fi
1818

1919
dotnet build $testtarget --configuration Release
20-
dotnet test $testtarget --configuration Release --no-build --no-restore --collect:"XPlat Code Coverage"
20+
dotnet test $testtarget --configuration Release --no-build --no-restore --framework net9.0 --collect:"XPlat Code Coverage"
2121

2222
reportgenerator \
2323
-reports:tests/**/coverage.cobertura.xml \

src/Ardalis.Specification.EntityFramework6/Ardalis.Specification.EntityFramework6.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net8.0;net9.0;net472;</TargetFrameworks>
5-
<LangVersion>13.0</LangVersion>
65
<OutputType>Library</OutputType>
76
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
87

src/Ardalis.Specification.EntityFrameworkCore/Ardalis.Specification.EntityFrameworkCore.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
5-
<LangVersion>13.0</LangVersion>
65
<Nullable>enable</Nullable>
76

87
<AssemblyName>Ardalis.Specification.EntityFrameworkCore</AssemblyName>

src/Ardalis.Specification/Ardalis.Specification.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net8.0;net9.0;netstandard2.0</TargetFrameworks>
5-
<LangVersion>13.0</LangVersion>
65
<Nullable>enable</Nullable>
76

87
<AssemblyName>Ardalis.Specification</AssemblyName>

0 commit comments

Comments
 (0)