From b8c558cd250cc96a5452f9f525d6e231a691a056 Mon Sep 17 00:00:00 2001 From: RyosukeCla Date: Thu, 10 Oct 2024 10:50:33 +0900 Subject: [PATCH 1/3] rename --- .github/workflows/{e2e.yml => e2e-ios.yml} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename .github/workflows/{e2e.yml => e2e-ios.yml} (97%) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e-ios.yml similarity index 97% rename from .github/workflows/e2e.yml rename to .github/workflows/e2e-ios.yml index cbf013f..3bfdf70 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e-ios.yml @@ -4,7 +4,7 @@ on: branches: [ main ] jobs: - e2e: + publish-e2e-app: runs-on: macos-13 environment: name: Only Main @@ -22,3 +22,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/" + From 03b2e9d58352e154a4a96ccb46870b204447a43c Mon Sep 17 00:00:00 2001 From: RyosukeCla Date: Thu, 10 Oct 2024 10:51:18 +0900 Subject: [PATCH 2/3] add workflow_dispatch --- .github/workflows/e2e-ios.yml | 1 + .github/workflows/test-android.yml | 1 + .github/workflows/test-ios.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/e2e-ios.yml b/.github/workflows/e2e-ios.yml index 3bfdf70..1baacb8 100644 --- a/.github/workflows/e2e-ios.yml +++ b/.github/workflows/e2e-ios.yml @@ -1,5 +1,6 @@ name: "[ios] E2E Test Nativebrik SDK" on: + workflow_dispatch: push: branches: [ main ] 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: From 637d2edde5b6faae5c7fd6d821e96817a8f5d80e Mon Sep 17 00:00:00 2001 From: RyosukeCla Date: Thu, 10 Oct 2024 10:51:32 +0900 Subject: [PATCH 3/3] add android e2e publish workflow --- .github/workflows/e2e-android.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/e2e-android.yml 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/"