Skip to content

Commit

Permalink
Update runners
Browse files Browse the repository at this point in the history
  • Loading branch information
asherber committed Aug 18, 2024
1 parent 48f4694 commit e2f170e
Show file tree
Hide file tree
Showing 5 changed files with 734 additions and 309 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,28 @@ name: CI
on: [ push, pull_request, workflow_dispatch ]
jobs:
Build:
runs-on: windows-2016
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8

- name: Restore cache
uses: actions/cache@v2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Build
run: dotnet build
run: |
dotnet restore --locked-mode
dotnet build
- name: Test
run: dotnet test --no-build -v normal --logger trx

- name: Publish unit test report
uses: dorny/test-reporter@v1
uses: dorny/test-reporter@v1.9
if: success() || failure()
with:
name: Unit Test Report
Expand Down
6 changes: 5 additions & 1 deletion PetaPoco.SqlKata.Tests/PetaPoco.SqlKata.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.0;net452</TargetFrameworks>
<TargetFrameworks>net8.0;net452</TargetFrameworks>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand All @@ -20,5 +20,9 @@
<ItemGroup>
<ProjectReference Include="..\PetaPoco.SqlKata\PetaPoco.SqlKata.csproj" />
</ItemGroup>

<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

</Project>
Loading

0 comments on commit e2f170e

Please sign in to comment.