@@ -3,6 +3,19 @@ name: Kotlin Scheduled Integration
33on :
44 schedule :
55 - cron : ' 0 0,12 * * *' # Runs every day at 0:00 and 12:00 UTC
6+ workflow_dispatch :
7+ inputs :
8+ testTimeoutSeconds :
9+ description : ' Seconds for test timeout'
10+ required : true
11+ default : 40 # should be same as env.TEST_TIMEOUT_SECONDS
12+ shouldUseCache :
13+ description : ' Flag to use and save cache gradle. Tests results are cached!'
14+ required : true
15+ default : false
16+
17+ env :
18+ TEST_TIMEOUT_SECONDS : 40 # Predefined timeout for integration tests
619
720jobs :
821# Copy of ci_relay.yml
@@ -18,54 +31,41 @@ jobs:
1831 TEST_PROJECT_ID : ${{ secrets.WC_CLOUD_PROJECT_ID }}
1932 uses : ./.github/actions/ci_relay
2033
21- - name : Send GitHub Action trigger data to Slack workflow
22- if : failure()
23- id : slack
24- 25- with :
26- payload : |
27- {
28- "action_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
29- }
30- env :
31- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_SCHEDULED_CI_WEBHOOK_URL }}
34+ # Copy of ci_instrumented_test.yml
35+ # sdk_tests:
36+ # strategy:
37+ # fail-fast: false
38+ # matrix:
39+ # conf: [
40+ # { name: 'Sign_SDK', command: ":protocol:sign:allDevicesCheck" },
41+ # { name: 'Android_Core_SDK', command: ":core:android:allDevicesCheck" },
42+ # ]
3243
44+ # name: ${{ matrix.conf.name }}
45+ # runs-on: self-hosted
46+ # steps:
47+ # - uses: actions/checkout@v3
3348
34- # Copy of ci_instrumented_test.yml
35- sdk_tests :
36- strategy :
37- fail-fast : false
38- matrix :
39- conf : [
40- { name: Sign SDK, command: ":protocol:sign:connectedCheck", report: '/Users/runner/work/WalletConnectKotlinV2/WalletConnectKotlinV2/protocol/sign/build/reports/**' },
41- { name: Android Core SDK, command: ":core:android:connectedCheck", report: '/Users/runner/work/WalletConnectKotlinV2/WalletConnectKotlinV2/core/android/build/reports/**' },
42- ]
43- api-level : [ 32 ] # JUnit5 only supports API younger or equal to 26
44- target : [ google_apis ]
45- profile : [ Nexus 6 ]
46- arch : [ arm64-v8a ]
49+ # - name: Run instrumented tests
50+ # uses: ./.github/actions/ci_instrumented_tests
51+ # with:
52+ # shouldUseCache: ${{ github.event.inputs.testTimeoutSeconds || true }} # Setting to true faster pass unchanged code
53+ # name: ${{ matrix.conf.name }}
54+ # command: ${{ matrix.conf.command }}
55+ # report: ${{ matrix.conf.report }}
56+ # projectId: ${{ secrets.WC_CLOUD_PROJECT_ID }}
57+ # testTimeoutSeconds: ${{ github.event.inputs.testTimeoutSeconds || env.TEST_TIMEOUT_SECONDS }} # Prioritise dispatch input timeout over env one
4758
48- name : ${{ matrix.conf.name }} API ${{ matrix.api-level }}-${{ matrix.target }}-${{ matrix.profile }}-${{ matrix.arch }}
49- runs-on : self-hosted
59+ trigger_slack_webhook :
60+ runs-on : ubuntu-latest
61+ # needs: [sdk_tests, relay_tests]
62+ needs : [relay_tests]
63+ if : failure()
5064 steps :
51- - uses : actions/checkout@v3
52-
53- - name : Run instrumented tests
54- uses : ./.github/actions/ci_instrumented_tests
55- with :
56- shouldCache : true
57- name : ${{ matrix.conf.name }}
58- command : ${{ matrix.conf.command }}
59- report : ${{ matrix.conf.report }}
60- projectId : ${{ secrets.WC_CLOUD_PROJECT_ID }}
61- testTimeoutSeconds : ${{ github.event.inputs.testTimeoutSeconds || env.TEST_TIMEOUT_SECONDS }} # Prioritise dispatch input timeout over env one
62- api-level : ${{ matrix.api-level }}
63- target : ${{ matrix.target }}
64- profile : ${{ matrix.profile }}
65- arch : ${{ matrix.arch }}
65+ - name : Checkout
66+ uses : actions/checkout@v3
6667
6768 - name : Send GitHub Action trigger data to Slack workflow
68- if : failure()
6969 id : slack
70707171 with :
0 commit comments