From f9651d35ded485db3c232d767b8ce92f3d015a4d Mon Sep 17 00:00:00 2001 From: Roni Date: Wed, 15 Jan 2020 23:49:10 -0300 Subject: [PATCH] Add node version to examples and jobs --- src/examples/full.yml | 2 ++ src/jobs/android_test.yml | 8 +++++++- src/jobs/ios_build.yml | 8 +++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/examples/full.yml b/src/examples/full.yml index 5f91f0a..30104ec 100644 --- a/src/examples/full.yml +++ b/src/examples/full.yml @@ -89,6 +89,7 @@ usage: # Build the iOS app in release mode and do not run tests - rn/ios_build: name: build_ios_release + node_version: '10' project_path: ios/Example.xcodeproj device: "iPhone X" build_configuration: Release @@ -98,6 +99,7 @@ usage: # Build and test the iOS app in release mode - rn/ios_build_and_test: + node_version: '10' project_path: "ios/Example.xcodeproj" device: "iPhone X" build_configuration: "Release" diff --git a/src/jobs/android_test.yml b/src/jobs/android_test.yml index 98d2dd0..18d28e4 100644 --- a/src/jobs/android_test.yml +++ b/src/jobs/android_test.yml @@ -47,11 +47,17 @@ parameters: description: A custom command to run right after yarn install. type: string default: "" + # For macos executor + node_version: + description: The version of Node to use. This can be either a major version ("8"), a major and minor ("8.4"), or a fully qualified version ("8.4.1"). + type: string + default: 'latest' steps: - attach_workspace: at: <> - - setup_macos_executor + - setup_macos_executor: + node_version: <> - yarn_install - when: condition: <> diff --git a/src/jobs/ios_build.yml b/src/jobs/ios_build.yml index be6b048..1b6bc80 100644 --- a/src/jobs/ios_build.yml +++ b/src/jobs/ios_build.yml @@ -48,6 +48,11 @@ parameters: description: A custom command to run right after yarn install. type: string default: "" + # For macos executor + node_version: + description: The version of Node to use. This can be either a major version ("8"), a major and minor ("8.4"), or a fully qualified version ("8.4.1"). + type: string + default: 'latest' steps: - when: @@ -59,7 +64,8 @@ steps: steps: - attach_workspace: at: <> - - setup_macos_executor + - setup_macos_executor: + node_version: <> - yarn_install - when: condition: <>