Skip to content

add validation of pairing uri to the PairingClient #2609

add validation of pairing uri to the PairingClient

add validation of pairing uri to the PairingClient #2609

Workflow file for this run

name: SDKs Unit Tests
on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
- master
concurrency:
# Support push/pr as event types with different behaviors each:
# 1. push: queue up builds by branch
# 2. pr: only allow one run per PR
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref_name }}
# If there is already a workflow running for the same pull request, cancel it
# For non-PR triggers queue up builds
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
sdk_tests:
strategy:
matrix:
conf: [
{ name: Android-Core SDK, command: ":core:android:testDebugUnitTest" },
{ name: Sign SDK, command: ":protocol:sign:testDebugUnitTest" },
{ name: Auth SDK, command: ":protocol:auth:testDebugUnitTest" },
{ name: Chat SDK, command: ":protocol:chat:testDebugUnitTest" },
{ name: Notify SDK, command: ":protocol:notify:testDebugUnitTest" },
]
name: ${{ matrix.conf.name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
architecture: x86_64
cache: 'gradle'
- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Fetch Properties File
env:
SECRETS_PROPERTIES: ${{ secrets.SECRETS_PROPERTIES }}
run: echo $SECRETS_PROPERTIES | base64 --decode > secrets.properties
- name: Unit tests
env:
WC_CLOUD_PROJECT_ID: ${{ secrets.WC_CLOUD_PROJECT_ID }}
NOTIFY_INTEGRATION_TESTS_PROJECT_ID: ${{ secrets.NOTIFY_INTEGRATION_TESTS_PROJECT_ID }}
NOTIFY_INTEGRATION_TESTS_SECRET: ${{ secrets.NOTIFY_INTEGRATION_TESTS_SECRET }}
run: ./gradlew ${{ matrix.conf.command }}
- name: Stop Gradle
run: ./gradlew --stop