Skip to content

Commit c90f612

Browse files
bambucaJan Nielsen
andauthored
Support Automapper 14 (#82)
* update csproj to target automapper 14 * update workflows to be "same" as in the base repo --------- Co-authored-by: Jan Nielsen <[email protected]>
1 parent 57c1e7f commit c90f612

File tree

5 files changed

+54
-13
lines changed

5 files changed

+54
-13
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ on:
77
pull_request:
88
branches:
99
- master
10+
permissions:
11+
contents: read
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
1015
jobs:
1116
build:
1217
strategy:
1318
fail-fast: false
14-
runs-on: windows-2022
19+
runs-on: windows-latest
1520
steps:
1621
- name: Checkout
17-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
1823
with:
1924
fetch-depth: 0
2025
- name: Build and Test
@@ -27,7 +32,7 @@ jobs:
2732
run: ./Push.ps1
2833
shell: pwsh
2934
- name: Artifacts
30-
uses: actions/upload-artifact@v2
35+
uses: actions/upload-artifact@v4
3136
with:
3237
name: artifacts
3338
path: artifacts/**/*

.github/workflows/lock.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'Lock threads'
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 0'
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
lock:
13+
permissions:
14+
issues: write # for dessant/lock-threads to lock issues
15+
pull-requests: write # for dessant/lock-threads to lock PRs
16+
discussions: write # for dessant/lock-threads to lock discussions
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: dessant/lock-threads@v5
20+
with:
21+
issue-inactive-days: 31
22+
pr-inactive-days: 31
23+
discussion-inactive-days: 31
24+
issue-comment: >
25+
This issue has been automatically locked since there
26+
has not been any recent activity after it was closed.
27+
Please open a new issue for related bugs.
28+
pr-comment: >
29+
This pull request has been automatically locked since there
30+
has not been any recent activity after it was closed.
31+
discussion-comment: >
32+
This discussion has been automatically locked since there
33+
has not been any recent activity after it was closed.

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ on:
44
push:
55
tags:
66
- '*.*.*'
7+
permissions:
8+
contents: read
9+
710
jobs:
811
build:
912
strategy:
1013
fail-fast: false
11-
runs-on: windows-2022
14+
runs-on: windows-latest
1215
steps:
1316
- name: Checkout
14-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1518
with:
1619
fetch-depth: 0
1720
- name: Build and Test
@@ -30,7 +33,7 @@ jobs:
3033
run: ./Push.ps1
3134
shell: pwsh
3235
- name: Artifacts
33-
uses: actions/upload-artifact@v2
36+
uses: actions/upload-artifact@v4
3437
with:
3538
name: artifacts
3639
path: artifacts/**/*

AutoMapper.Data.Tests/AutoMapper.Data.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Description>AutoMapper.Data.Tests Class Library</Description>
55
<Authors>Jimmy Bogard</Authors>
6-
<TargetFrameworks>net7.0</TargetFrameworks>
6+
<TargetFramework>net9.0</TargetFramework>
77
<DebugType>portable</DebugType>
88
<AssemblyName>AutoMapper.Data.Tests</AssemblyName>
99
<PackageId>AutoMapper.Data.Tests</PackageId>
@@ -22,9 +22,9 @@
2222

2323
<ItemGroup>
2424
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
25-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
26-
<PrivateAssets>all</PrivateAssets>
27-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
25+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
26+
<PrivateAssets>all</PrivateAssets>
27+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2828
</PackageReference>
2929
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.3.0" />
3030
<PackageReference Include="xunit" Version="2.4.1" />

AutoMapper.Data/AutoMapper.Data.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
<PropertyGroup>
44
<Description>ADO.NET extensions for AutoMapper</Description>
5-
<VersionPrefix>8.0.0</VersionPrefix>
5+
<VersionPrefix>9.0.0</VersionPrefix>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
<Authors>Jimmy Bogard</Authors>
8-
<TargetFrameworks>net6.0</TargetFrameworks>
8+
<TargetFramework>net8.0</TargetFramework>
99
<AssemblyName>AutoMapper.Data</AssemblyName>
1010
<PackageId>AutoMapper.Data</PackageId>
1111
<PackageTags>AutoMapper</PackageTags>
@@ -25,7 +25,7 @@
2525
</PropertyGroup>
2626

2727
<ItemGroup>
28-
<PackageReference Include="AutoMapper" Version="[13.0.0, 14.0.0)" />
28+
<PackageReference Include="AutoMapper" Version="[14.0.0, 15.0.0)" />
2929
<None Include="..\README.md" Pack="true" PackagePath="" />
3030
</ItemGroup>
3131

0 commit comments

Comments
 (0)