react-native-community / react-native-circleci-orb

A CircleCI Orb to Simplify Testing your React Native App
MIT License
175 stars 81 forks source link

Detox install via brew fails - Tapping wix/brew - Error: No similarly named formulae found. #97

Closed kieran-osgood closed 3 years ago

kieran-osgood commented 3 years ago

Orb version

orbs:
  rn: react-native-community/react-native@1.0.0
version: 2.1

Full Config:


jobs:
  checkout_code:
    executor: rn/linux_js
    steps:
      - checkout
      - persist_to_workspace:
          paths: [.]
          root: .

  analyse_js:
    working_directory: ~/punchline
    docker:
      - image: cimg/node:14.16.1

    steps:
      - checkout
      - restore_cache:
          key: node-v1-{{ checksum "package.json" }}-{{ arch }}

      - run: npm install

      - save_cache:
          key: node-v1-{{ checksum "package.json" }}-{{ arch }}
          paths:
            - node_modules

      - run:
          name: jest tests
          command: |
            mkdir -p test-results/jest
            npm run ci:test:jest
          environment:
            JEST_JUNIT_OUTPUT: test-results/jest/junit.xml

      - persist_to_workspace:
          root: ~/punchline
          paths:
            - node_modules

      - store_test_results:
          path: test-results

      - store_artifacts:
          path: test-results

  fastlane_android_release:
    executor: rn/linux_js
    steps:
      - attach_workspace:
          at: .
      - run: npm i
      - run:
          command: echo
          name: Run Fastlane

  fastlane_ios_release:
    executor: rn/linux_js
    steps:
      - attach_workspace:
          at: .
      - run: npm i
      - run:
          command: echo 1
          name: Run Fastlane
orbs:
  rn: react-native-community/react-native@1.0.0
version: 2.1
workflows:
  test:
    jobs:
      - checkout_code

      - analyse_js:
          requires:
            - checkout_code

      - rn/android_build:
          build_type: debug
          name: build_android_debug
          project_path: android
          requires:
            - analyse_js

      - rn/android_build:
          build_type: release
          name: build_android_release
          project_path: android
          requires:
            - analyse_js

      - rn/android_test:
          detox_configuration: android.emu.release
          requires:
            - build_android_release

      - rn/ios_build_and_test:
          build_configuration: Release
          detox_configuration: ios.sim.release
          device: iPhone X
          project_path: ios/Punchline.xcodeproj
          requires:
            - analyse_js
          scheme: Punchline

      - fastlane_android_release:
          requires:
            - rn/android_test

      - fastlane_ios_release:
          requires:
            - rn/ios_build_and_test

What happened

==> Tapping wix/brew
Cloning into '/usr/local/Homebrew/Library/Taps/wix/homebrew-brew'...
remote: Enumerating objects: 631, done.        
remote: Counting objects: 100% (87/87), done.        
remote: Compressing objects: 100% (50/50), done.        
remote: Total 631 (delta 45), reused 63 (delta 24), pack-reused 544        
Receiving objects: 100% (631/631), 1.58 MiB | 8.66 MiB/s, done.
Resolving deltas: 100% (332/332), done.
Tapped 1 cask and 1 formula (29 files, 1.6MB).
==> Unshallowing homebrew/cask
remote: Enumerating objects: 172082, done.        
remote: Counting objects: 100% (159790/159790), done.        
remote: Compressing objects: 100% (45457/45457), done.        
remote: Total 150280 (delta 112920), reused 141969 (delta 104669), pack-reused 0        
Receiving objects: 100% (150280/150280), 72.29 MiB | 27.91 MiB/s, done.
Resolving deltas: 100% (112920/112920), completed with 5397 local objects.
Error: No similarly named formulae found.
Error: No available formula or cask with the name "node@8".
Warning: homebrew/core is shallow clone. To get its complete history, run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

Expected behavior

Would expect it to successfully install detox, and then proceed to run the detox tests

kieran-osgood commented 3 years ago

Oh wow, I overwrote the orb version at some point in getting some example code, my bad 🤦‍♂️