@@ -77,61 +77,24 @@ jobs:
7777 echo "Running yarn install..."
7878 /home/runner/.cache/node/corepack/v1/yarn/3.6.1/yarn.js install
7979
80-
81- - name : Run tests
80+ - name : Debug Jest setup
8281 run : |
83- echo "Running yarn test..."
84- /home/runner/.cache/node/corepack/v1/yarn/3.6.1/yarn.js test
85-
86- # - name: Build
87- # run: |
88- # echo "Running yarn prepare..."
89- # /home/runner/.cache/node/corepack/v1/yarn/3.6.1/yarn.js prepare
90-
91- build-ios :
92- runs-on : macos-latest
93- defaults :
94- run :
95- working-directory : packages/sdk-platforms/react-native/react-native-zksync-sso
96- steps :
97- - name : Checkout code
98- uses : actions/checkout@v4
99-
100- - name : Set up Node.js
101- uses : actions/setup-node@v4
102- with :
103- node-version : ' 20'
104-
105- - name : Set up Yarn 3.6.1 and plugins
106- run : |
107- # Modify .yarnrc.yml to remove yarnPath and plugin paths
108- echo "Modifying .yarnrc.yml..."
109- sed -i '/yarnPath:/d' .yarnrc.yml
110- sed -i '/- path: .yarn\/plugins/d' .yarnrc.yml
111- echo "Modified .yarnrc.yml:"
112- cat .yarnrc.yml
113- # Enable Corepack and prepare Yarn 3.6.1
114- corepack enable
115- corepack prepare yarn@3.6.1 --activate
116- # Make the Yarn binary executable
117- chmod +x /home/runner/.cache/node/corepack/v1/yarn/3.6.1/yarn.js
118- # Verify Yarn version
82+ echo "Node version:"
83+ node --version
11984 echo "Yarn version:"
12085 /home/runner/.cache/node/corepack/v1/yarn/3.6.1/yarn.js --version
121- # Import plugins
122- echo "Importing plugin interactive-tools..."
123- /home/runner/.cache/node/corepack/v1/yarn/3.6.1/yarn.js plugin import @yarnpkg/plugin-interactive-tools
124- echo "Importing plugin workspace-tools..."
125- /home/runner/.cache/node/corepack/v1/yarn/3.6.1/yarn.js plugin import @yarnpkg/plugin-workspace-tools
86+ echo "Checking node_modules for Jest:"
87+ ls -la node_modules/jest || echo "Jest not found in node_modules"
88+ echo "Listing Yarn cache:"
89+ ls -la .yarn/cache/ || echo "No .yarn/cache directory"
12690
127- - name : Install dependencies
128- run : |
129- echo "Running yarn install..."
130- /home/runner/.cache/node/corepack/v1/yarn/3.6.1/yarn.js install
131-
132- - name : Build ios
91+ - name : Run tests
13392 run : |
134- echo "Running yarn ubrn:ios..."
135- /home/runner/.cache/node/corepack/v1/yarn/3.6.1/yarn.js ubrn:ios
136-
93+ echo "Running yarn test..."
94+ /home/runner/.cache/node/corepack/v1/yarn/3.6.1/yarn.js test
13795
96+ # Uncomment if needed later
97+ # - name: Build
98+ # run: |
99+ # echo "Running yarn prepare..."
100+ # /home/runner/.cache/node/corepack/v1/yarn/3.6.1/yarn.js prepare
0 commit comments