diff --git a/.github/workflows/e2e_test.yml b/.github/workflows/e2e_test.yml index e8f20834..61ed36c1 100644 --- a/.github/workflows/e2e_test.yml +++ b/.github/workflows/e2e_test.yml @@ -30,7 +30,7 @@ jobs: # JOB 1: Setup Fixture # ==================================================== setup: - name: Setup Fixture + name: Fixture ${{ inputs.version }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 @@ -63,7 +63,7 @@ jobs: - name: Upload Fixture uses: actions/upload-artifact@v7 with: - name: fixture-${{ inputs.platform }} + name: fixture-${{ inputs.platform }}-${{ inputs.version }} path: ${{ env.APP_DIR }} include-hidden-files: true retention-days: 1 @@ -86,7 +86,7 @@ jobs: - name: Download Fixture uses: actions/download-artifact@v8 with: - name: fixture-${{ inputs.platform }} + name: fixture-${{ inputs.platform }}-${{ inputs.version }} - uses: actions/setup-node@v6 with: @@ -123,7 +123,7 @@ jobs: if: failure() uses: actions/upload-artifact@v7 with: - name: xcodebuild_log_ios_${{ inputs.platform }} + name: xcodebuild_log_ios_${{ inputs.platform }}_${{ inputs.version }} path: xcodebuild.log if-no-files-found: ignore retention-days: 1 @@ -132,7 +132,7 @@ jobs: if: always() uses: actions/upload-artifact@v7 with: - name: appium_failure_ios_${{ inputs.platform }} + name: appium_failure_ios_${{ inputs.platform }}_${{ inputs.version }} path: appium_failure.png if-no-files-found: ignore retention-days: 1 @@ -141,7 +141,7 @@ jobs: if: always() uses: actions/upload-artifact@v7 with: - name: appium_page_source_ios_${{ inputs.platform }} + name: appium_page_source_ios_${{ inputs.platform }}_${{ inputs.version }} path: appium_page_source.xml if-no-files-found: ignore retention-days: 1 @@ -165,7 +165,7 @@ jobs: - name: Download Fixture uses: actions/download-artifact@v8 with: - name: fixture-${{ inputs.platform }} + name: fixture-${{ inputs.platform }}-${{ inputs.version }} - name: Setup Android Emulator uses: ./.github/actions/setup-android-emulator @@ -205,7 +205,7 @@ jobs: if: always() uses: actions/upload-artifact@v7 with: - name: appium_failure_android_${{ inputs.platform }} + name: appium_failure_android_${{ inputs.platform }}_${{ inputs.version }} path: appium_failure.png if-no-files-found: ignore retention-days: 1 @@ -214,7 +214,7 @@ jobs: if: always() uses: actions/upload-artifact@v7 with: - name: appium_page_source_android_${{ inputs.platform }} + name: appium_page_source_android_${{ inputs.platform }}_${{ inputs.version }} path: appium_page_source.xml if-no-files-found: ignore retention-days: 1 diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml index 02772bdd..0afe7b1c 100644 --- a/.github/workflows/pr_check.yml +++ b/.github/workflows/pr_check.yml @@ -47,26 +47,38 @@ jobs: node-version: ${{ vars.NODE_VERSION }} e2e-react-native: - name: E2E Test React Native + name: React Native if: contains(github.event.pull_request.labels.*.name, 'run-e2e-tests') needs: [build-lib] + strategy: + fail-fast: false + matrix: + include: + - version: '0.76.8' + node-version: '20' + - version: '0.85.3' + node-version: '22' uses: ./.github/workflows/e2e_test.yml with: platform: 'react-native' - version: '0.80.2' - node-version: ${{ vars.NODE_VERSION }} + version: ${{ matrix.version }} + node-version: ${{ matrix.node-version }} secrets: ADYEN_CLIENT_KEY: ${{ secrets.ADYEN_CLIENT_KEY }} ADYEN_PUBLIC_KEY: ${{ secrets.ADYEN_PUBLIC_KEY }} e2e-expo: - name: E2E Test Expo + name: Expo if: contains(github.event.pull_request.labels.*.name, 'run-e2e-tests') needs: [build-lib] + strategy: + fail-fast: false + matrix: + version: ['52', '53'] uses: ./.github/workflows/e2e_test.yml with: platform: 'expo' - version: '52' + version: ${{ matrix.version }} node-version: ${{ vars.NODE_VERSION }} secrets: ADYEN_CLIENT_KEY: ${{ secrets.ADYEN_CLIENT_KEY }} diff --git a/e2e-tests/scripts/resolve_rn_cli_version.sh b/e2e-tests/scripts/resolve_rn_cli_version.sh index 27a67a3e..e9441683 100644 --- a/e2e-tests/scripts/resolve_rn_cli_version.sh +++ b/e2e-tests/scripts/resolve_rn_cli_version.sh @@ -13,7 +13,7 @@ rn_version=${1:-} major_version=$(echo "$rn_version" | cut -d '.' -f 1,2) case $major_version in - '0.81' | '0.82' ) echo '^20.0.0' ;; + 0.8[1-5]* ) echo '^20.0.0' ;; '0.80' ) echo '^19.0.0' ;; '0.79' ) echo '^18.0.0' ;; '0.76' | '0.77' | '0.78' ) echo '^15.0.0' ;;