-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: simplify integration tests versioning (#693)
- Loading branch information
Showing
73 changed files
with
194 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.verified.txt text eol=lf working-tree-encoding=UTF-8 | ||
*.verified.json text eol=lf working-tree-encoding=UTF-8 | ||
*.verified.cs text eol=lf working-tree-encoding=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,7 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
dotnet-version: ${{ matrix.dotnet }} | ||
- run: dotnet --list-sdks | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: mapperly-nupkg | ||
|
@@ -113,6 +114,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
# delete global.json since we want to use custom versions here | ||
- run: rm global.json | ||
- run: dotnet --list-sdks | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: mapperly-nupkg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
test/Riok.Mapperly.IntegrationTests/Helpers/VersionedSnapshotAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
|
||
namespace Riok.Mapperly.IntegrationTests.Helpers | ||
{ | ||
/// <summary> | ||
/// Uses different paths for snapshots of each version with expected changes. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] | ||
public class VersionedSnapshotAttribute : Attribute | ||
{ | ||
/// <summary> | ||
/// Uses different paths for snapshots of each version with expected changes. | ||
/// </summary> | ||
/// <param name="versionsWithChanges">The versions which result in different snapshot content than the previous version.</param> | ||
public VersionedSnapshotAttribute(Versions versionsWithChanges) | ||
{ | ||
VersionsWithChanges = versionsWithChanges; | ||
} | ||
|
||
public Versions VersionsWithChanges { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
|
||
namespace Riok.Mapperly.IntegrationTests.Helpers | ||
{ | ||
[Flags] | ||
public enum Versions | ||
{ | ||
NETFRAMEWORK4_8 = 1 << 0, | ||
NET6_0 = 1 << 1, | ||
NET7_0 = 1 << 2, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,4 +146,4 @@ private static (string A, string) MapToValueTuple((string A, string) source) | |
return target; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,4 +176,4 @@ | |
}, | ||
DateTimeValueTargetDateOnly: 2020-01-03, | ||
DateTimeValueTargetTimeOnly: 3:10 PM | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,4 +181,4 @@ | |
}, | ||
DateTimeValueTargetDateOnly: 2020-01-03, | ||
DateTimeValueTargetTimeOnly: 3:10 PM | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,4 +181,4 @@ | |
}, | ||
DateTimeValueTargetDateOnly: 2020-01-03, | ||
DateTimeValueTargetTimeOnly: 3:10 PM | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -492,4 +492,4 @@ private string MapToString1(global::Riok.Mapperly.IntegrationTests.Dto.TestEnumD | |
return target; | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.