diff --git a/.github/workflows/e2e-android.yml b/.github/workflows/e2e-android.yml new file mode 100644 index 0000000..62ded57 --- /dev/null +++ b/.github/workflows/e2e-android.yml @@ -0,0 +1,26 @@ +name: "[android] E2E Test Nativebrik SDK" +on: + workflow_dispatch: + push: + branches: [ main ] + +jobs: + publish-e2e-app: + runs-on: ubuntu-latest + environment: + name: Only Main + steps: + - name: checkout + uses: actions/checkout@v2 + - name: setup jdk + uses: actions/setup-java@v2 + with: + distribution: 'zulu' + java-version: '21' + - name: build e2e app + working-directory: android + run: ./gradlew assembleRelease + - name: upload e2e app + working-directory: android + run: | + curl -L -X POST -F "file=@./android/e2e/build/outputs/apk/release/e2e-release-unsigned.apk" -H "Authorization: Token ${{ secrets.MAGICPOD_API_TOKEN }}" "https://app.magicpod.com/api/v1.0/Nativebrik.inc/Nativebrik/upload-file/" diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e-ios.yml similarity index 95% rename from .github/workflows/e2e.yml rename to .github/workflows/e2e-ios.yml index cbf013f..1baacb8 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e-ios.yml @@ -1,10 +1,11 @@ name: "[ios] E2E Test Nativebrik SDK" on: + workflow_dispatch: push: branches: [ main ] jobs: - e2e: + publish-e2e-app: runs-on: macos-13 environment: name: Only Main @@ -22,3 +23,4 @@ jobs: - name: Uploade to magicpod run: | curl -L -X POST -F "file=@.dist/Build/Products/Release-iphonesimulator/E2E.app.zip" -H "Authorization: Token ${{ secrets.MAGICPOD_API_TOKEN }}" "https://app.magicpod.com/api/v1.0/Nativebrik.inc/Nativebrik/upload-file/" + diff --git a/.github/workflows/test-android.yml b/.github/workflows/test-android.yml index 0639092..28189b4 100644 --- a/.github/workflows/test-android.yml +++ b/.github/workflows/test-android.yml @@ -1,5 +1,6 @@ name: "[android] Test Nativebrik SDK" on: + workflow_dispatch: push: branches: [ main ] pull_request: diff --git a/.github/workflows/test-ios.yml b/.github/workflows/test-ios.yml index 1f1bc9c..6cb840b 100644 --- a/.github/workflows/test-ios.yml +++ b/.github/workflows/test-ios.yml @@ -1,5 +1,6 @@ name: "[ios] Test Nativebrik SDK" on: + workflow_dispatch: push: branches: [ main ] pull_request: