From 5bba9e117830c1839423011fe1bf31e366b6519a Mon Sep 17 00:00:00 2001 From: Ryan Rivest Date: Fri, 19 Sep 2025 12:17:52 -0700 Subject: [PATCH] update GitHub action versions and NuGet packages, bump version --- .github/workflows/{dotnet-core.yml => dotnet.yml} | 15 +++++++++------ IntegrationTests/IntegrationTests.csproj | 12 ++++++------ .../OpenExchangeRatesSharp.csproj | 4 ++-- UnitTests/UnitTests.csproj | 10 +++++----- 4 files changed, 22 insertions(+), 19 deletions(-) rename .github/workflows/{dotnet-core.yml => dotnet.yml} (59%) diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet.yml similarity index 59% rename from .github/workflows/dotnet-core.yml rename to .github/workflows/dotnet.yml index a8ac089..6f56f76 100644 --- a/.github/workflows/dotnet-core.yml +++ b/.github/workflows/dotnet.yml @@ -1,8 +1,10 @@ -name: .NET Core +name: .NET on: push: branches: [ master ] + pull_request: + branches: [ master ] jobs: build: @@ -10,17 +12,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + - uses: actions/checkout@v5 + - name: Setup .NET + uses: actions/setup-dotnet@v5 with: - dotnet-version: 3.1.301 + dotnet-version: 8.0.x - name: Install dependencies run: dotnet restore - name: Build run: dotnet build --configuration Release --no-restore - name: Publish OpenExchangeRatesSharp - uses: brandedoutcast/publish-nuget@v2.5.2 + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + uses: alirezanet/publish-nuget@v3.1.0 with: PROJECT_FILE_PATH: OpenExchangeRatesSharp/OpenExchangeRatesSharp.csproj NUGET_KEY: ${{secrets.NUGET_API_KEY}} diff --git a/IntegrationTests/IntegrationTests.csproj b/IntegrationTests/IntegrationTests.csproj index 24d42bc..8fa2e11 100644 --- a/IntegrationTests/IntegrationTests.csproj +++ b/IntegrationTests/IntegrationTests.csproj @@ -1,16 +1,16 @@ - + - netcoreapp2.1 + net8.0 true false - - - - + + + + diff --git a/OpenExchangeRatesSharp/OpenExchangeRatesSharp.csproj b/OpenExchangeRatesSharp/OpenExchangeRatesSharp.csproj index 596770d..6b2d914 100644 --- a/OpenExchangeRatesSharp/OpenExchangeRatesSharp.csproj +++ b/OpenExchangeRatesSharp/OpenExchangeRatesSharp.csproj @@ -5,7 +5,7 @@ A simple C# wrapper over the [https://openexchangerates.org/](openexchangerates.org) API LukeWarrenDev Luke Warren - 1.0.2 + 1.0.3 OpenExchangeRatesSharp https://github.com/Lukejkw/OpenExchangeRatesSharp/blob/master/License.md https://github.com/Lukejkw/OpenExchangeRatesSharp/ @@ -17,7 +17,7 @@ - + diff --git a/UnitTests/UnitTests.csproj b/UnitTests/UnitTests.csproj index 9d7044a..e789c66 100644 --- a/UnitTests/UnitTests.csproj +++ b/UnitTests/UnitTests.csproj @@ -1,15 +1,15 @@ - + - netcoreapp2.1 + net8.0 true false - - - + + +