From 32804cf5240b5a41876c5ed1d93e7cd02ccd9c87 Mon Sep 17 00:00:00 2001 From: skibitsky Date: Mon, 11 Dec 2023 16:28:18 +0900 Subject: [PATCH 1/5] Remove netcoreapp3.1 from the lists of target frameworks --- Directory.Build.props | 2 +- .../WalletConnectSharp.Auth.Tests.csproj | 44 ++++++++--------- .../WalletConnectSharp.Crypto.Tests.csproj | 44 ++++++++--------- .../WalletConnectSharp.Examples.csproj | 40 ++++++++-------- .../WalletConnectSharp.Network.Tests.csproj | 48 +++++++++---------- .../WalletConnectSharp.Sign.Test.csproj | 46 +++++++++--------- .../WalletConnectSharp.Storage.Test.csproj | 34 ++++++------- .../WalletConnectSharp.Tests.Common.csproj | 28 +++++------ ...WalletConnectSharp.Web3Wallet.Tests.csproj | 46 +++++++++--------- 9 files changed, 166 insertions(+), 166 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index fbcf5de..0aa033e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ 2.1.6 - net6.0;netcoreapp3.1;netstandard2.1; + net6.0;netstandard2.1; latest diff --git a/Tests/WalletConnectSharp.Auth.Tests/WalletConnectSharp.Auth.Tests.csproj b/Tests/WalletConnectSharp.Auth.Tests/WalletConnectSharp.Auth.Tests.csproj index 782a000..1dea15a 100644 --- a/Tests/WalletConnectSharp.Auth.Tests/WalletConnectSharp.Auth.Tests.csproj +++ b/Tests/WalletConnectSharp.Auth.Tests/WalletConnectSharp.Auth.Tests.csproj @@ -1,28 +1,28 @@ - - net6.0;netcoreapp3.1 - 2.0.0 - 2.0.0 - 2.0.0 - + + net6.0; + 2.0.0 + 2.0.0 + 2.0.0 + - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + - - - - + + + + diff --git a/Tests/WalletConnectSharp.Crypto.Tests/WalletConnectSharp.Crypto.Tests.csproj b/Tests/WalletConnectSharp.Crypto.Tests/WalletConnectSharp.Crypto.Tests.csproj index bfe7d0e..7aea694 100644 --- a/Tests/WalletConnectSharp.Crypto.Tests/WalletConnectSharp.Crypto.Tests.csproj +++ b/Tests/WalletConnectSharp.Crypto.Tests/WalletConnectSharp.Crypto.Tests.csproj @@ -1,28 +1,28 @@ - - net6.0;netcoreapp3.1 - 2.0.0 - 2.0.0 - 2.0.0 - + + net6.0 + 2.0.0 + 2.0.0 + 2.0.0 + - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + - - - - + + + + diff --git a/Tests/WalletConnectSharp.Examples/WalletConnectSharp.Examples.csproj b/Tests/WalletConnectSharp.Examples/WalletConnectSharp.Examples.csproj index 264dcc0..2cda446 100644 --- a/Tests/WalletConnectSharp.Examples/WalletConnectSharp.Examples.csproj +++ b/Tests/WalletConnectSharp.Examples/WalletConnectSharp.Examples.csproj @@ -1,25 +1,25 @@ - - net6.0;netcoreapp3.1;netcoreapp3.1 - 2.0.0 - 2.0.0 - 2.0.0 - Exe - false - WalletConnect.Examples - WalletConnectSharp.Examples - pedrouid, gigajuwels, edkek - A port of the TypeScript SDK to C#. A complete implementation of the WalletConnect v2 protocol that can be used to connect to external wallets or connect a wallet to an external Dapp - Copyright (c) WalletConnect 2023 - https://walletconnect.org/ - https://github.com/WalletConnect/WalletConnectSharp - git - walletconnect wallet web3 ether ethereum blockchain evm - + + net6.0; + 2.0.0 + 2.0.0 + 2.0.0 + Exe + false + WalletConnect.Examples + WalletConnectSharp.Examples + pedrouid, gigajuwels, edkek + A port of the TypeScript SDK to C#. A complete implementation of the WalletConnect v2 protocol that can be used to connect to external wallets or connect a wallet to an external Dapp + Copyright (c) WalletConnect 2023 + https://walletconnect.org/ + https://github.com/WalletConnect/WalletConnectSharp + git + walletconnect wallet web3 ether ethereum blockchain evm + - - - + + + diff --git a/Tests/WalletConnectSharp.Network.Tests/WalletConnectSharp.Network.Tests.csproj b/Tests/WalletConnectSharp.Network.Tests/WalletConnectSharp.Network.Tests.csproj index 82acc30..fcfe2da 100644 --- a/Tests/WalletConnectSharp.Network.Tests/WalletConnectSharp.Network.Tests.csproj +++ b/Tests/WalletConnectSharp.Network.Tests/WalletConnectSharp.Network.Tests.csproj @@ -1,30 +1,30 @@ - - net6.0;netcoreapp3.1 - 2.0.0 - 2.0.0 - 2.0.0 - + + net6.0; + 2.0.0 + 2.0.0 + 2.0.0 + - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + - - - - - - + + + + + + diff --git a/Tests/WalletConnectSharp.Sign.Test/WalletConnectSharp.Sign.Test.csproj b/Tests/WalletConnectSharp.Sign.Test/WalletConnectSharp.Sign.Test.csproj index 488bd90..a590934 100644 --- a/Tests/WalletConnectSharp.Sign.Test/WalletConnectSharp.Sign.Test.csproj +++ b/Tests/WalletConnectSharp.Sign.Test/WalletConnectSharp.Sign.Test.csproj @@ -1,29 +1,29 @@ - - net6.0;netcoreapp3.1 - 2.0.0 - 2.0.0 - 2.0.0 - + + net6.0; + 2.0.0 + 2.0.0 + 2.0.0 + - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + - - - - - + + + + + diff --git a/Tests/WalletConnectSharp.Storage.Test/WalletConnectSharp.Storage.Test.csproj b/Tests/WalletConnectSharp.Storage.Test/WalletConnectSharp.Storage.Test.csproj index a6497f1..a27f432 100644 --- a/Tests/WalletConnectSharp.Storage.Test/WalletConnectSharp.Storage.Test.csproj +++ b/Tests/WalletConnectSharp.Storage.Test/WalletConnectSharp.Storage.Test.csproj @@ -1,28 +1,28 @@ - + - false + false - net6.0;netcoreapp3.1 + net6.0; - 2.0.0 + 2.0.0 - 2.0.0 + 2.0.0 - 2.0.0 - + 2.0.0 + - - - - - - + + + + + + - - - - + + + + diff --git a/Tests/WalletConnectSharp.Tests.Common/WalletConnectSharp.Tests.Common.csproj b/Tests/WalletConnectSharp.Tests.Common/WalletConnectSharp.Tests.Common.csproj index eee131d..d2f7254 100644 --- a/Tests/WalletConnectSharp.Tests.Common/WalletConnectSharp.Tests.Common.csproj +++ b/Tests/WalletConnectSharp.Tests.Common/WalletConnectSharp.Tests.Common.csproj @@ -1,20 +1,20 @@ - - net6.0;netcoreapp3.1;netstandard2.1 - 2.0.0 - 2.0.0 - 2.0.0 - false - + + net6.0; + 2.0.0 + 2.0.0 + 2.0.0 + false + - - - - + + + + - - - + + + diff --git a/Tests/WalletConnectSharp.Web3Wallet.Tests/WalletConnectSharp.Web3Wallet.Tests.csproj b/Tests/WalletConnectSharp.Web3Wallet.Tests/WalletConnectSharp.Web3Wallet.Tests.csproj index dbf1d2d..54f3f85 100644 --- a/Tests/WalletConnectSharp.Web3Wallet.Tests/WalletConnectSharp.Web3Wallet.Tests.csproj +++ b/Tests/WalletConnectSharp.Web3Wallet.Tests/WalletConnectSharp.Web3Wallet.Tests.csproj @@ -1,29 +1,29 @@ - - net6.0;netcoreapp3.1 - 2.0.0 - 2.0.0 - 2.0.0 - + + net6.0; + 2.0.0 + 2.0.0 + 2.0.0 + - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + - - - - + + + + From f6db72709e10c5150d7c17f59e98c41b6dcbe53a Mon Sep 17 00:00:00 2001 From: skibitsky Date: Mon, 11 Dec 2023 18:32:09 +0900 Subject: [PATCH 2/5] Cleanup GitHub Actions, upload build artifacts --- .github/actions/ci/action.yml | 6 ++-- .../workflows/{dotnet_build.yml => ci.yml} | 20 ++++++++++--- .github/workflows/pull_request.yml | 30 ------------------- .github/workflows/release.yml | 4 ++- 4 files changed, 21 insertions(+), 39 deletions(-) rename .github/workflows/{dotnet_build.yml => ci.yml} (61%) delete mode 100644 .github/workflows/pull_request.yml diff --git a/.github/actions/ci/action.yml b/.github/actions/ci/action.yml index c547286..437c3e1 100644 --- a/.github/actions/ci/action.yml +++ b/.github/actions/ci/action.yml @@ -15,17 +15,15 @@ inputs: runs: using: "composite" steps: - # Package buildss - name: Run tests if: inputs.type == 'unit-tests' shell: bash - run: dotnet test --verbosity normal --filter Category=unit + run: dotnet test --verbosity minimal --filter Category=unit - # Integration tests - name: Run integration tests if: inputs.type == 'integration-tests' shell: bash env: RELAY_ENDPOINT: ${{ inputs.relay-endpoint }} PROJECT_ID: ${{ inputs.project-id }} - run: dotnet test --verbosity normal --filter Category=integration + run: dotnet test --verbosity minimal --filter Category=integration diff --git a/.github/workflows/dotnet_build.yml b/.github/workflows/ci.yml similarity index 61% rename from .github/workflows/dotnet_build.yml rename to .github/workflows/ci.yml index ea27745..9c1a93b 100644 --- a/.github/workflows/dotnet_build.yml +++ b/.github/workflows/ci.yml @@ -2,8 +2,8 @@ name: .NET Build & Test on: push: - branches: [ main, 2.0 ] - + branches: [ main, '2.0' ] + pull_request: jobs: build: runs-on: ubuntu-latest @@ -17,15 +17,27 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: | - 3.1.x 6.0.x + - name: Restore dependencies run: dotnet restore working-directory: ./ + - name: Build run: dotnet build --no-restore working-directory: ./ - - uses: ./.github/actions/ci + + - name: Run tests + uses: ./.github/actions/ci with: type: ${{ matrix.test-type }} project-id: ${{ secrets.PROJECT_ID }} + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: build-artifacts + path: | + **/bin/**/*.dll + !**/Core Modules/**/bin/**/*.dll + !**/Tests/**/bin/**/*.dll \ No newline at end of file diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml deleted file mode 100644 index 45d2ae4..0000000 --- a/.github/workflows/pull_request.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: PR Build - -on: - pull_request: - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - test-type: [ unit-tests, integration-tests ] - - steps: - - uses: actions/checkout@v2 - - name: Setup .NET - uses: actions/setup-dotnet@v1 - with: - dotnet-version: | - 3.1.x - 6.0.x - - name: Restore dependencies - run: dotnet restore - working-directory: ./ - - name: Build - run: dotnet build --no-restore - working-directory: ./ - - uses: ./.github/actions/ci - with: - type: ${{ matrix.test-type }} - project-id: ${{ secrets.PROJECT_ID }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b02567..57cfb47 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,18 +11,20 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Setup .NET uses: actions/setup-dotnet@v1 with: dotnet-version: | - 3.1.x 6.0.x + - name: Build run: dotnet build -c Release - uses: ./.github/actions/ci with: type: 'unit-tests' project-id: ${{ secrets.PROJECT_ID }} + - name: Pack nugets run: dotnet pack -c Release --no-build --output . - name: Push to NuGet From 84fe35070524dd41f42fb50d4f4459330ddd86a0 Mon Sep 17 00:00:00 2001 From: skibitsky Date: Tue, 12 Dec 2023 11:35:53 +0900 Subject: [PATCH 3/5] Move build into a separate job --- .github/workflows/ci.yml | 43 +++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c1a93b..48a4a0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,35 +4,28 @@ on: push: branches: [ main, '2.0' ] pull_request: + jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - test-type: [unit-tests, integration-tests] - + steps: - uses: actions/checkout@v2 + - name: Setup .NET uses: actions/setup-dotnet@v1 with: dotnet-version: | 6.0.x - + - name: Restore dependencies run: dotnet restore working-directory: ./ - + - name: Build run: dotnet build --no-restore working-directory: ./ - - - name: Run tests - uses: ./.github/actions/ci - with: - type: ${{ matrix.test-type }} - project-id: ${{ secrets.PROJECT_ID }} - + - name: Upload build artifacts uses: actions/upload-artifact@v3 with: @@ -40,4 +33,26 @@ jobs: path: | **/bin/**/*.dll !**/Core Modules/**/bin/**/*.dll - !**/Tests/**/bin/**/*.dll \ No newline at end of file + !**/Tests/**/bin/**/*.dll + + test: + needs: build + runs-on: ubuntu-latest + strategy: + matrix: + test-type: [unit-tests, integration-tests] + + steps: + - uses: actions/checkout@v2 + + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: | + 6.0.x + + - name: Run tests + uses: ./.github/actions/ci + with: + type: ${{ matrix.test-type }} + project-id: ${{ secrets.PROJECT_ID }} \ No newline at end of file From 85507b4bdb4e5b6284e43b7691a868e4857b4464 Mon Sep 17 00:00:00 2001 From: skibitsky Date: Tue, 12 Dec 2023 15:16:08 +0900 Subject: [PATCH 4/5] Use .NET 8 SDK --- .github/workflows/ci.yml | 8 ++++---- Directory.Build.props | 2 +- .../WalletConnectSharp.Auth.Tests.csproj | 2 +- .../WalletConnectSharp.Crypto.Tests.csproj | 2 +- .../WalletConnectSharp.Examples.csproj | 2 +- .../WalletConnectSharp.Network.Tests.csproj | 2 +- .../WalletConnectSharp.Sign.Test.csproj | 2 +- .../WalletConnectSharp.Storage.Test.csproj | 2 +- .../WalletConnectSharp.Tests.Common.csproj | 2 +- .../WalletConnectSharp.Web3Wallet.Tests.csproj | 2 +- global.json | 6 +++--- 11 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48a4a0c..274050f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,10 +13,10 @@ jobs: - uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: | - 6.0.x + 8.0.x - name: Restore dependencies run: dotnet restore @@ -46,10 +46,10 @@ jobs: - uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: | - 6.0.x + 8.0.x - name: Run tests uses: ./.github/actions/ci diff --git a/Directory.Build.props b/Directory.Build.props index 0aa033e..3c3552d 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ 2.1.6 - net6.0;netstandard2.1; + net6.0;net7.0;net8.0;netstandard2.1; latest diff --git a/Tests/WalletConnectSharp.Auth.Tests/WalletConnectSharp.Auth.Tests.csproj b/Tests/WalletConnectSharp.Auth.Tests/WalletConnectSharp.Auth.Tests.csproj index 1dea15a..9f3749c 100644 --- a/Tests/WalletConnectSharp.Auth.Tests/WalletConnectSharp.Auth.Tests.csproj +++ b/Tests/WalletConnectSharp.Auth.Tests/WalletConnectSharp.Auth.Tests.csproj @@ -1,7 +1,7 @@ - net6.0; + net8.0 2.0.0 2.0.0 2.0.0 diff --git a/Tests/WalletConnectSharp.Crypto.Tests/WalletConnectSharp.Crypto.Tests.csproj b/Tests/WalletConnectSharp.Crypto.Tests/WalletConnectSharp.Crypto.Tests.csproj index 7aea694..ae51b03 100644 --- a/Tests/WalletConnectSharp.Crypto.Tests/WalletConnectSharp.Crypto.Tests.csproj +++ b/Tests/WalletConnectSharp.Crypto.Tests/WalletConnectSharp.Crypto.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 2.0.0 2.0.0 2.0.0 diff --git a/Tests/WalletConnectSharp.Examples/WalletConnectSharp.Examples.csproj b/Tests/WalletConnectSharp.Examples/WalletConnectSharp.Examples.csproj index 2cda446..441d40b 100644 --- a/Tests/WalletConnectSharp.Examples/WalletConnectSharp.Examples.csproj +++ b/Tests/WalletConnectSharp.Examples/WalletConnectSharp.Examples.csproj @@ -1,7 +1,7 @@ - net6.0; + net8.0 2.0.0 2.0.0 2.0.0 diff --git a/Tests/WalletConnectSharp.Network.Tests/WalletConnectSharp.Network.Tests.csproj b/Tests/WalletConnectSharp.Network.Tests/WalletConnectSharp.Network.Tests.csproj index fcfe2da..8c72a4b 100644 --- a/Tests/WalletConnectSharp.Network.Tests/WalletConnectSharp.Network.Tests.csproj +++ b/Tests/WalletConnectSharp.Network.Tests/WalletConnectSharp.Network.Tests.csproj @@ -1,7 +1,7 @@ - net6.0; + net8.0 2.0.0 2.0.0 2.0.0 diff --git a/Tests/WalletConnectSharp.Sign.Test/WalletConnectSharp.Sign.Test.csproj b/Tests/WalletConnectSharp.Sign.Test/WalletConnectSharp.Sign.Test.csproj index a590934..eefa15c 100644 --- a/Tests/WalletConnectSharp.Sign.Test/WalletConnectSharp.Sign.Test.csproj +++ b/Tests/WalletConnectSharp.Sign.Test/WalletConnectSharp.Sign.Test.csproj @@ -1,7 +1,7 @@ - net6.0; + net8.0 2.0.0 2.0.0 2.0.0 diff --git a/Tests/WalletConnectSharp.Storage.Test/WalletConnectSharp.Storage.Test.csproj b/Tests/WalletConnectSharp.Storage.Test/WalletConnectSharp.Storage.Test.csproj index a27f432..be8fbda 100644 --- a/Tests/WalletConnectSharp.Storage.Test/WalletConnectSharp.Storage.Test.csproj +++ b/Tests/WalletConnectSharp.Storage.Test/WalletConnectSharp.Storage.Test.csproj @@ -4,7 +4,7 @@ false - net6.0; + net8.0 2.0.0 diff --git a/Tests/WalletConnectSharp.Tests.Common/WalletConnectSharp.Tests.Common.csproj b/Tests/WalletConnectSharp.Tests.Common/WalletConnectSharp.Tests.Common.csproj index d2f7254..a74a7d3 100644 --- a/Tests/WalletConnectSharp.Tests.Common/WalletConnectSharp.Tests.Common.csproj +++ b/Tests/WalletConnectSharp.Tests.Common/WalletConnectSharp.Tests.Common.csproj @@ -1,7 +1,7 @@ - net6.0; + net8.0 2.0.0 2.0.0 2.0.0 diff --git a/Tests/WalletConnectSharp.Web3Wallet.Tests/WalletConnectSharp.Web3Wallet.Tests.csproj b/Tests/WalletConnectSharp.Web3Wallet.Tests/WalletConnectSharp.Web3Wallet.Tests.csproj index 54f3f85..ed02976 100644 --- a/Tests/WalletConnectSharp.Web3Wallet.Tests/WalletConnectSharp.Web3Wallet.Tests.csproj +++ b/Tests/WalletConnectSharp.Web3Wallet.Tests/WalletConnectSharp.Web3Wallet.Tests.csproj @@ -1,7 +1,7 @@ - net6.0; + net8.0 2.0.0 2.0.0 2.0.0 diff --git a/global.json b/global.json index 9e5e1fd..1e05653 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "6.0.0", + "version": "8.0.100", "rollForward": "latestMajor", - "allowPrerelease": true + "allowPrerelease": false } -} \ No newline at end of file +} From 5a0f8a920fa9a6ed56ba309af3bc4951a7b3535c Mon Sep 17 00:00:00 2001 From: skibitsky Date: Wed, 13 Dec 2023 15:21:44 +0900 Subject: [PATCH 5/5] On release dispatch an event to walletconnect/walletconnectunity --- .github/workflows/ci.yml | 4 +- .github/workflows/release.yml | 81 +++++++++++++++++++++++++---------- Directory.Build.props | 3 +- 3 files changed, 63 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 274050f..a55f2f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET uses: actions/setup-dotnet@v3 @@ -43,7 +43,7 @@ jobs: test-type: [unit-tests, integration-tests] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET uses: actions/setup-dotnet@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57cfb47..c77ead1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,31 +1,68 @@ -name: Release to NuGet +name: Release on: + workflow_dispatch: release: types: [published] - + jobs: build: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup .NET - uses: actions/setup-dotnet@v1 - with: - dotnet-version: | - 6.0.x - - - name: Build - run: dotnet build -c Release - - uses: ./.github/actions/ci - with: - type: 'unit-tests' - project-id: ${{ secrets.PROJECT_ID }} - - - name: Pack nugets - run: dotnet pack -c Release --no-build --output . - - name: Push to NuGet - run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 8.0.x + + - name: Run tests + uses: ./.github/actions/ci + with: + type: 'unit-tests' + project-id: ${{ secrets.PROJECT_ID }} + + - name: Build Release + run: dotnet build -c Release + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: build-artifacts + path: | + **/bin/**/*.dll + !**/Tests/**/bin/**/*.dll + + pack: + needs: build + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Checkout + uses: actions/checkout@v4 + +# - name: Setup .NET +# uses: actions/setup-dotnet@v3 +# with: +# dotnet-version: | +# 8.0.x +# +# - name: Pack nugets +# run: dotnet pack -c Release --no-build --output . +# +# - name: Push to NuGet +# run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json + + dispatch: + needs: pack + runs-on: ubuntu-latest + steps: + - name: Trigger workflow in WalletConnectUnity + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REPOSITORY_DISPATCH_PAT }} + repository: walletconnect/walletconnectunity + event-type: new-release \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props index 3c3552d..8b613ed 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,8 @@ 2.1.6 - net6.0;net7.0;net8.0;netstandard2.1; + net6.0;net7.0;net8.0;netstandard2.1; + true latest