From b72add15dd54b84ab735367fca702e64ff92cf38 Mon Sep 17 00:00:00 2001 From: Remco Koopmans Date: Sat, 27 Jul 2024 21:49:41 +0200 Subject: [PATCH] Prepare new release --- .github/workflows/ci-cd.yml | 6 +++--- CHANGES.md | 6 ++++++ src/Tinify/Tinify.csproj | 2 +- test/Tinify.Tests.Integration/Integration.cs | 4 ++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index f2219ca..329f3f6 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -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" diff --git a/CHANGES.md b/CHANGES.md index 7645389..1eeb028 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/src/Tinify/Tinify.csproj b/src/Tinify/Tinify.csproj index 3696e2a..132fe1c 100644 --- a/src/Tinify/Tinify.csproj +++ b/src/Tinify/Tinify.csproj @@ -3,7 +3,7 @@ .NET client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com. Tinify - 1.6.0 + 1.7.0 Tinify netstandard2.0 Tinify diff --git a/test/Tinify.Tests.Integration/Integration.cs b/test/Tinify.Tests.Integration/Integration.cs index 76947c0..edd8fe5 100755 --- a/test/Tinify.Tests.Integration/Integration.cs +++ b/test/Tinify.Tests.Integration/Integration.cs @@ -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);