File tree Expand file tree Collapse file tree 2 files changed +49
-49
lines changed Expand file tree Collapse file tree 2 files changed +49
-49
lines changed Original file line number Diff line number Diff line change @@ -146,55 +146,7 @@ jobs:
146
146
- uses : actions/checkout@v3
147
147
148
148
- name : prepare sub-projects
149
- env :
150
- YARN_ENABLE_IMMUTABLE_INSTALLS : false
151
- run : |
152
- rm package.json
153
- rm package-lock.json
154
- echo "create yarn2 project in the sub2"
155
- mkdir sub2
156
- cd sub2
157
- cat <<EOT >package.json
158
- {
159
- "name": "subproject",
160
- "dependencies": {
161
- "random": "^3.0.6",
162
- "uuid": "^9.0.0"
163
- }
164
- }
165
- EOT
166
- yarn set version 2.4.3
167
- yarn install
168
-
169
- echo "create yarn3 project in the sub3"
170
- cd ..
171
- mkdir sub3
172
- cd sub3
173
- cat <<EOT >package.json
174
- {
175
- "name": "subproject",
176
- "dependencies": {
177
- "random": "^3.0.6",
178
- "uuid": "^9.0.0"
179
- }
180
- }
181
- EOT
182
- yarn set version 3.5.1
183
- yarn install
184
-
185
- echo "create yarn1 project in the root"
186
- cd ..
187
- cat <<EOT >package.json
188
- {
189
- "name": "subproject",
190
- "dependencies": {
191
- "random": "^3.0.6",
192
- "uuid": "^9.0.0"
193
- }
194
- }
195
- EOT
196
- yarn set version 1.22.19
197
- yarn install
149
+ run : __tests__/prepare-subprojects.sh
198
150
199
151
# expect
200
152
# - no errors
Original file line number Diff line number Diff line change
1
+ #! /bin/sh -e
2
+ export YARN_ENABLE_IMMUTABLE_INSTALLS=false
3
+ rm package.json
4
+ rm package-lock.json
5
+ echo " create yarn2 project in the sub2"
6
+ mkdir sub2
7
+ cd sub2
8
+ cat << EOT >package.json
9
+ {
10
+ "name": "subproject",
11
+ "dependencies": {
12
+ "random": "^3.0.6",
13
+ "uuid": "^9.0.0"
14
+ }
15
+ }
16
+ EOT
17
+ yarn set version 2.4.3
18
+ yarn install
19
+
20
+ echo " create yarn3 project in the sub3"
21
+ cd ..
22
+ mkdir sub3
23
+ cd sub3
24
+ cat << EOT >package.json
25
+ {
26
+ "name": "subproject",
27
+ "dependencies": {
28
+ "random": "^3.0.6",
29
+ "uuid": "^9.0.0"
30
+ }
31
+ }
32
+ EOT
33
+ yarn set version 3.5.1
34
+ yarn install
35
+
36
+ echo " create yarn1 project in the root"
37
+ cd ..
38
+ cat << EOT >package.json
39
+ {
40
+ "name": "subproject",
41
+ "dependencies": {
42
+ "random": "^3.0.6",
43
+ "uuid": "^9.0.0"
44
+ }
45
+ }
46
+ EOT
47
+ yarn set version 1.22.19
48
+ yarn install
You can’t perform that action at this time.
0 commit comments