diff --git a/.circleci/config.yml b/.circleci/config.yml index 8ff25fba..1ac82fc8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,16 +10,19 @@ jobs: node_version: '20.11' steps: - checkout + - rn/yarn_install + - rn/yarn_install: + yarn_install_directory: 'example' - persist_to_workspace: root: . paths: . analyse: executor: name: rn/linux_js + node_version: '20.11' steps: - attach_workspace: at: . - - rn/yarn_install - run: name: Lint JS Code (ESLint) command: yarn run lint @@ -36,18 +39,36 @@ workflows: - checkout_code - rn/android_build: name: build_android_debug + project_path: "example/android" attach_workspace: true - workspace_root: "example" + workspace_root: '.' build_type: debug requires: - analyse + on_after_initialize: | + set +e + curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.7/install.sh | bash + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + nvm install 20.11 + nvm alias default 20.11 - rn/android_build: name: build_android_release + project_path: "example/android" attach_workspace: true - workspace_root: "example" + workspace_root: '.' build_type: release requires: - analyse + on_after_initialize: | + set +e + curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.7/install.sh | bash + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + nvm install 20.11 + nvm alias default 20.11 # - rn/android_test: # detox_configuration: "android.emu.release" # detox_loglevel: "trace"