-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from WalletConnect/chore/ci-updates
chore: ci updates
- Loading branch information
Showing
15 changed files
with
289 additions
and
254 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,58 @@ | ||
name: .NET Build & Test | ||
|
||
on: | ||
push: | ||
branches: [ main, '2.0' ] | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
8.0.x | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
working-directory: ./ | ||
|
||
- name: Build | ||
run: dotnet build --no-restore | ||
working-directory: ./ | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-artifacts | ||
path: | | ||
**/bin/**/*.dll | ||
!**/Core Modules/**/bin/**/*.dll | ||
!**/Tests/**/bin/**/*.dll | ||
test: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test-type: [unit-tests, integration-tests] | ||
|
||
steps: | ||
- 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: ${{ matrix.test-type }} | ||
project-id: ${{ secrets.PROJECT_ID }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,29 +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: | | ||
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 | ||
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 |
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
44 changes: 22 additions & 22 deletions
44
Tests/WalletConnectSharp.Auth.Tests/WalletConnectSharp.Auth.Tests.csproj
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks> | ||
<PackageVersion>2.0.0</PackageVersion> | ||
<AssemblyVersion>2.0.0</AssemblyVersion> | ||
<FileVersion>2.0.0</FileVersion> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<PackageVersion>2.0.0</PackageVersion> | ||
<AssemblyVersion>2.0.0</AssemblyVersion> | ||
<FileVersion>2.0.0</FileVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" /> | ||
<PackageReference Include="xunit" /> | ||
<PackageReference Include="xunit.runner.visualstudio"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="coverlet.collector"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk"/> | ||
<PackageReference Include="xunit"/> | ||
<PackageReference Include="xunit.runner.visualstudio"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="coverlet.collector"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\WalletConnectSharp.Auth\WalletConnectSharp.Auth.csproj" /> | ||
<ProjectReference Include="..\WalletConnectSharp.Tests.Common\WalletConnectSharp.Tests.Common.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\WalletConnectSharp.Auth\WalletConnectSharp.Auth.csproj"/> | ||
<ProjectReference Include="..\WalletConnectSharp.Tests.Common\WalletConnectSharp.Tests.Common.csproj"/> | ||
</ItemGroup> | ||
|
||
</Project> |
44 changes: 22 additions & 22 deletions
44
Tests/WalletConnectSharp.Crypto.Tests/WalletConnectSharp.Crypto.Tests.csproj
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks> | ||
<PackageVersion>2.0.0</PackageVersion> | ||
<AssemblyVersion>2.0.0</AssemblyVersion> | ||
<FileVersion>2.0.0</FileVersion> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<PackageVersion>2.0.0</PackageVersion> | ||
<AssemblyVersion>2.0.0</AssemblyVersion> | ||
<FileVersion>2.0.0</FileVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" /> | ||
<PackageReference Include="xunit" /> | ||
<PackageReference Include="xunit.runner.visualstudio"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="coverlet.collector"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk"/> | ||
<PackageReference Include="xunit"/> | ||
<PackageReference Include="xunit.runner.visualstudio"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="coverlet.collector"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\Core Modules\WalletConnectSharp.Crypto\WalletConnectSharp.Crypto.csproj" /> | ||
<ProjectReference Include="..\..\Core Modules\WalletConnectSharp.Network\WalletConnectSharp.Network.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\Core Modules\WalletConnectSharp.Crypto\WalletConnectSharp.Crypto.csproj"/> | ||
<ProjectReference Include="..\..\Core Modules\WalletConnectSharp.Network\WalletConnectSharp.Network.csproj"/> | ||
</ItemGroup> | ||
|
||
</Project> |
40 changes: 20 additions & 20 deletions
40
Tests/WalletConnectSharp.Examples/WalletConnectSharp.Examples.csproj
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net6.0;netcoreapp3.1;netcoreapp3.1</TargetFrameworks> | ||
<PackageVersion>2.0.0</PackageVersion> | ||
<AssemblyVersion>2.0.0</AssemblyVersion> | ||
<FileVersion>2.0.0</FileVersion> | ||
<OutputType>Exe</OutputType> | ||
<IsPackable>false</IsPackable> | ||
<PackageId>WalletConnect.Examples</PackageId> | ||
<Title>WalletConnectSharp.Examples</Title> | ||
<Authors>pedrouid, gigajuwels, edkek</Authors> | ||
<Description>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</Description> | ||
<Copyright>Copyright (c) WalletConnect 2023</Copyright> | ||
<PackageProjectUrl>https://walletconnect.org/</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/WalletConnect/WalletConnectSharp</RepositoryUrl> | ||
<RepositoryType>git </RepositoryType> | ||
<PackageTags>walletconnect wallet web3 ether ethereum blockchain evm</PackageTags> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<PackageVersion>2.0.0</PackageVersion> | ||
<AssemblyVersion>2.0.0</AssemblyVersion> | ||
<FileVersion>2.0.0</FileVersion> | ||
<OutputType>Exe</OutputType> | ||
<IsPackable>false</IsPackable> | ||
<PackageId>WalletConnect.Examples</PackageId> | ||
<Title>WalletConnectSharp.Examples</Title> | ||
<Authors>pedrouid, gigajuwels, edkek</Authors> | ||
<Description>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</Description> | ||
<Copyright>Copyright (c) WalletConnect 2023</Copyright> | ||
<PackageProjectUrl>https://walletconnect.org/</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/WalletConnect/WalletConnectSharp</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<PackageTags>walletconnect wallet web3 ether ethereum blockchain evm</PackageTags> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\WalletConnectSharp.Sign\WalletConnectSharp.Sign.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\WalletConnectSharp.Sign\WalletConnectSharp.Sign.csproj"/> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.