Skip to content

Commit

Permalink
Prepare new release
Browse files Browse the repository at this point in the history
  • Loading branch information
rkoopmans committed Jul 28, 2024
1 parent cad9952 commit b72add1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ jobs:
env:
TINIFY_KEY: ${{ secrets.TINIFY_KEY }}
run: |
if ("${{ matrix.dotnet-target }}" -eq "6.0.x") {
if ("${{ matrix.dotnet-version }}" -eq "6.0.x") {
dotnet test --configuration Release --no-build --verbosity normal --framework net6.0 test/Tinify.Tests.Integration
} elseif ("${{ matrix.dotnet-target }}" -eq "3.1.x") {
} elseif ("${{ matrix.dotnet-version }}" -eq "3.1.x") {
dotnet test --configuration Release --no-build --verbosity normal --framework netcoreapp3.1 test/Tinify.Tests.Integration
} elseif ("${{ matrix.dotnet-target }}" -eq "8.0.x") {
} elseif ("${{ matrix.dotnet-version }}" -eq "8.0.x") {
dotnet test --configuration Release --no-build --verbosity normal --framework net8.0 test/Tinify.Tests.Integration
} else {
Write-Error "Unsupported .NET version $env:MATRIX_DOTNET_VERSION"
Expand Down
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.7.0
* Added .NET 8 as test target
* Dropped .NET 6
* Added tests for macOS ARM
* Bumped System.Text.Json to 8.0.4

## 1.6.0
* Increased TargetFramework to netstandard2.0
* Tinify client is now tested on
Expand Down
2 changes: 1 addition & 1 deletion src/Tinify/Tinify.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Description>.NET client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.</Description>
<AssemblyTitle>Tinify</AssemblyTitle>
<VersionPrefix>1.6.0</VersionPrefix>
<VersionPrefix>1.7.0</VersionPrefix>
<Authors>Tinify</Authors>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Tinify</AssemblyName>
Expand Down
4 changes: 2 additions & 2 deletions test/Tinify.Tests.Integration/Integration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,12 @@ public void Should_Resize_And_PreserveMetadata()
{
using var file = new TempFile();
var resizeOptions = new { method = "fit", width = 50, height = 20 };
var preserveOptions = new[] { "copyright", "location" };
var preserveOptions = new[] { "location", "copyright" };
optimized.Resize(resizeOptions).Preserve(preserveOptions).ToFile(file.Path).Wait();

var size = new FileInfo(file.Path).Length;
Assert.Greater(size, 500);
Assert.Less(size, 1100);
Assert.Less(size, 1150);

var metaData = new ImageMetadata(file.Path);
Assert.That(metaData.IsPng);
Expand Down

0 comments on commit b72add1

Please sign in to comment.