Skip to content

[MOB-12053] Use node CI Orb #946

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 51 additions & 44 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 2.1
orbs:
android: circleci/[email protected]
advanced-checkout: vsco/[email protected]
node: circleci/[email protected]

commands:
install_pods:
Expand Down Expand Up @@ -33,13 +34,12 @@ jobs:
- run: bundle exec danger

lint:
docker:
- image: cimg/node:16.17.1
executor:
name: node/default
steps:
- advanced-checkout/shallow-checkout
- run:
name: Install Node Packages
command: yarn
- node/install-packages:
pkg-manager: yarn
- run:
name: Check Format
command: yarn format
Expand All @@ -48,13 +48,12 @@ jobs:
command: yarn lint:ci

test_module:
docker:
- image: cimg/node:16.17.1
executor:
name: node/default
steps:
- advanced-checkout/shallow-checkout
- run:
name: Install Node Packages
command: yarn
- node/install-packages:
pkg-manager: yarn
- run:
name: Run Tests
command: yarn test
Expand All @@ -63,17 +62,14 @@ jobs:
executor:
name: android/android-machine
tag: '2022.03.1'
working_directory: ~/project/example
steps:
- advanced-checkout/shallow-checkout
- run:
name: Install Yarn
command: npm install -g yarn
- run:
name: Install Node Packages
working_directory: example
command: yarn
- node/install-yarn
- node/install-packages:
pkg-manager: yarn
- android/run-tests:
working-directory: ./example/android
working-directory: android
test-command: ./gradlew test -PinstabugUploadEnable=false

validate_shell_files:
Expand All @@ -96,8 +92,11 @@ jobs:
xcode: 13.4.1
steps:
- advanced-checkout/shallow-checkout
- run: yarn
- run: cd example && yarn
- node/install-packages:
pkg-manager: yarn
- node/install-packages:
pkg-manager: yarn
app-dir: example
- install_pods:
working_directory: example/ios
- run: git --no-pager diff
Expand All @@ -111,9 +110,8 @@ jobs:
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE: true
steps:
- advanced-checkout/shallow-checkout
- run:
name: Install node_modules
command: yarn
- node/install-packages:
pkg-manager: yarn
- install_pods:
working_directory: ios
- run:
Expand Down Expand Up @@ -147,21 +145,23 @@ jobs:
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE: true
steps:
- advanced-checkout/shallow-checkout
- node/install-packages:
pkg-manager: yarn
- node/install-packages:
pkg-manager: yarn
app-dir: example
- install_pods:
working_directory: example/ios
- run:
name: Install Detox CLI
command: npm install -g detox-cli
- run:
name: Install Detox Utils
command: brew tap wix/brew && brew install applesimutils
- run:
name: Install Node Packages
command: yarn
- run:
name: Install Example's Node Packages
name: Rebuild Detox.framework Cache
working_directory: example
command: yarn
- install_pods:
working_directory: example/ios
command: detox clean-framework-cache && detox build-framework-cache
- run:
name: Detox - Build Release App
working_directory: example
Expand All @@ -178,19 +178,15 @@ jobs:
resource-class: large
steps:
- advanced-checkout/shallow-checkout
- run:
name: Install Yarn
command: npm install -g yarn
- node/install-yarn
- node/install-packages:
pkg-manager: yarn
- node/install-packages:
pkg-manager: yarn
app-dir: example
- run:
name: Install Detox CLI
command: npm install -g detox-cli
- run:
name: Install Node Packages
command: yarn
- run:
name: Install Example's Node Packages
working_directory: example
command: yarn
- android/create-avd:
avd-name: Nexus_6P_API_27
install: true
Expand All @@ -215,10 +211,21 @@ jobs:
steps:
- advanced-checkout/shallow-checkout
- run: git clone [email protected]:Instabug/Escape.git
- run: cd Escape && swift build -c release
- run: cd Escape/.build/release && cp -f Escape /usr/local/bin/escape
- run: cd project && yarn && yarn build
- run: cd project && Escape react-native publish
- run:
working_directory: Escape
command: swift build -c release
- run:
working_directory: Escape/.build/release
command: cp -f Escape /usr/local/bin/escape
- node/install-packages:
pkg-manager: yarn
app-dir: project
- run:
working_directory: project
command: yarn build
- run:
working_directory: project
command: Escape react-native publish

workflows:
publish:
Expand Down