Skip to content

Commit aa55815

Browse files
authored
Merge pull request #1121 from WalletConnect/develop
BOM 1.16.0
2 parents 964a2d3 + 8a53834 commit aa55815

File tree

404 files changed

+11422
-4484
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

404 files changed

+11422
-4484
lines changed

.github/actions/ci_instrumented_tests/action.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ inputs:
2424
runs:
2525
using: "composite"
2626
steps:
27-
- name: Gradle cache
28-
if: ${{ inputs.shouldUseCache }}
29-
uses: gradle/gradle-build-action@v2
30-
3127
- name: Create log file
3228
shell: bash
3329
run: |
@@ -40,7 +36,7 @@ runs:
4036
env:
4137
WC_CLOUD_PROJECT_ID: ${{ inputs.projectId}}
4238
TEST_TIMEOUT_SECONDS: ${{ inputs.testTimeoutSeconds }}
43-
run: ./gradlew ${{ inputs.command }}
39+
run: ./gradlew ${{ inputs.command }} -Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect
4440

4541
- uses: actions/upload-artifact@v3
4642
if: always()
@@ -49,3 +45,9 @@ runs:
4945
path: |
5046
**/reports/**
5147
emulator.log
48+
49+
- name: Clean unused managed devices
50+
if: always()
51+
shell: bash
52+
run: ./gradlew cleanManagedDevices --unused-only 2>/dev/null
53+
# It sometimes fails, but failure shouldn't be the cause of action being marked as failed, hence `2>/dev/null`

.github/workflows/ci_assemble.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ jobs:
4343
- name: Assemble Debug Project
4444
env:
4545
WC_CLOUD_PROJECT_ID: ${{ secrets.WC_CLOUD_PROJECT_ID }}
46-
run: ./gradlew assembleDebug -x :sample:wallet:assembleDebug -x :sample:dapp:assembleDebug -x :sample:common:assembleDebug -x :sample:inbox:assembleDebug
46+
# See if we can build out the list of sample project instead of manually adding them here
47+
run: ./gradlew assembleDebug -x :sample:wallet:assembleDebug -x :sample:dapp:assembleDebug -x :sample:common:assembleDebug -x :sample:inbox:assembleDebug -x :sample:modals:assembleDebug
4748

4849
- name: Stop Gradle
4950
run: ./gradlew --stop

.github/workflows/ci_db_migrations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
{ name: Sign SDK, command: ":protocol:sign:verifyDebugSignDatabaseMigration" },
2929
{ name: Auth SDK, command: ":protocol:auth:verifyDebugAuthDatabaseMigration" },
3030
{ name: Chat SDK, command: ":protocol:chat:verifyDebugChatDatabaseMigration" },
31-
{ name: Push SDK, command: ":protocol:push:verifyDebugPushDatabaseMigration" },
31+
{ name: Notify SDK, command: ":protocol:notify:verifyDebugNotifyDatabaseMigration" },
3232
]
3333
name: ${{ matrix.conf.name }}
3434
runs-on: ubuntu-latest

.github/workflows/ci_instrumented_tests.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ on:
1111
description: 'Flag to use and save cache gradle. Tests results are cached!'
1212
required: true
1313
default: false
14-
# push:
15-
# branches:
16-
# - develop
17-
# pull_request:
18-
# branches:
19-
# - develop
20-
# - master
14+
# pull_request:
15+
# branches:
16+
# - develop
17+
# - master
2118

2219
env:
2320
TEST_TIMEOUT_SECONDS: 40 # Predefined timeout for integration tests
@@ -37,12 +34,12 @@ jobs:
3734
fail-fast: false
3835
matrix:
3936
conf: [
40-
{ name: 'Sign_SDK', command: ":protocol:sign:allDevicesCheck"},
41-
{ name: 'Android_Core_SDK', command: ":core:android:allDevicesCheck"},
37+
{ name: 'Android_Core_SDK', command: ":core:android:allDevicesCheck" },
38+
{ name: 'Sign_SDK', command: ":protocol:sign:allDevicesCheck" },
4239
]
4340

4441
name: ${{ matrix.conf.name }}
45-
runs-on: self-hosted
42+
runs-on: [self-hosted, kotlin]
4643
steps:
4744
- uses: actions/checkout@v3
4845

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Record Snapshots
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
record_snapshots:
8+
strategy:
9+
matrix:
10+
conf: [
11+
{ name: wcm, command: ":product:walletconnectmodal:recordPaparazziDebug"}
12+
]
13+
name: ${{ matrix.conf.name }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Setup Java 17
19+
uses: actions/setup-java@v3
20+
with:
21+
distribution: 'zulu'
22+
java-version: '17'
23+
architecture: x86_64
24+
cache: 'gradle'
25+
26+
- name: Cache Gradle
27+
uses: actions/cache@v3
28+
with:
29+
path: |
30+
~/.gradle/caches
31+
~/.gradle/wrapper
32+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
33+
restore-keys: |
34+
${{ runner.os }}-gradle-
35+
36+
- name: Records snapshots
37+
run: ./gradlew ${{ matrix.conf.command }}
38+
39+
- name: Stop Gradle
40+
run: ./gradlew --stop

.github/workflows/ci_sdks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
{ name: Sign SDK, command: ":protocol:sign:testDebugUnitTest" },
2929
{ name: Auth SDK, command: ":protocol:auth:testDebugUnitTest" },
3030
{ name: Chat SDK, command: ":protocol:chat:testDebugUnitTest" },
31-
{ name: Push SDK, command: ":protocol:push:testDebugUnitTest" },
31+
{ name: Push SDK, command: ":protocol:notify:testDebugUnitTest" },
3232
]
3333
name: ${{ matrix.conf.name }}
3434
runs-on: ubuntu-latest
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Verify Snapshots
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
verify_snapshots:
8+
strategy:
9+
matrix:
10+
conf: [
11+
{ name: wcm, command: ":product:walletconnectmodal:verifyPaparazziDebug"}
12+
]
13+
name: ${{ matrix.conf.name }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Setup Java 17
19+
uses: actions/setup-java@v3
20+
with:
21+
distribution: 'zulu'
22+
java-version: '17'
23+
architecture: x86_64
24+
cache: 'gradle'
25+
26+
- name: Cache Gradle
27+
uses: actions/cache@v3
28+
with:
29+
path: |
30+
~/.gradle/caches
31+
~/.gradle/wrapper
32+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
33+
restore-keys: |
34+
${{ runner.os }}-gradle-
35+
36+
- name: Verify snapshots
37+
run: ./gradlew ${{ matrix.conf.command }}
38+
39+
- name: Stop Gradle
40+
run: ./gradlew --stop

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,6 @@ lint/tmp/
8888

8989
# Android Profiling
9090
*.hprof
91+
92+
# Snapshots
93+
*/*/src/test/snapshots/*

0 commit comments

Comments
 (0)