Skip to content

Fix AndroidSqliteDriver constructor call #49

Fix AndroidSqliteDriver constructor call

Fix AndroidSqliteDriver constructor call #49

name: DB Migration Verification
on:
pull_request:
types:
- opened
- synchronize
- edited
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:
db_migration_verification:
strategy:
matrix:
conf: [
{ name: Android-Core SDK, command: ":core:android:verifyDebugAndroidCoreDatabaseMigration" },
{ name: Sign SDK, command: ":protocol:sign:verifyDebugSignDatabaseMigration" },
{ name: Notify SDK, command: ":protocol:notify:verifyDebugNotifyDatabaseMigration" },
]
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
- 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: Sdk Migration Verification
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