Skip to content

Commit

Permalink
Target specific SDK version (#4)
Browse files Browse the repository at this point in the history
* Target specific SDK version
  • Loading branch information
sergiomartins8 authored Jan 17, 2024
1 parent 10b7fd5 commit c33775e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Espresso Tests

on: [ push, workflow_dispatch ]
on:
workflow_dispatch:
inputs:
SDK_TARGET_VERSION:
description: 'Target a specific SDK version. Otherwise latest'
required: false
push:

jobs:
build:
Expand Down Expand Up @@ -48,6 +54,7 @@ jobs:
env:
API_TOKEN: ${{secrets.API_TOKEN}}
WORKFLOW_ID: ${{secrets.WORKFLOW_ID}}
SDK_TARGET_VERSION: ${{github.event.inputs.SDK_TARGET_VERSION}}
run: |
mkdir app/src/main/assets
cd app/src/main/assets
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/onfido/evergreen/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import java.text.SimpleDateFormat
import java.util.Date

data class Configuration(
val version: String = "latest",
val version: String = System.getenv("SDK_TARGET_VERSION") ?: "latest",
val url: String? = null
)

Expand Down

0 comments on commit c33775e

Please sign in to comment.