Skip to content

Commit e6a6894

Browse files
committed
review updates
1 parent b8b9502 commit e6a6894

File tree

9 files changed

+219
-242
lines changed

9 files changed

+219
-242
lines changed

.github/workflows/e2e-cache.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,78 @@ jobs:
134134
- name: Verify node and yarn
135135
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
136136
shell: bash
137+
138+
yarn-subprojects:
139+
name: Test yarn subprojects
140+
strategy:
141+
matrix:
142+
node-version: [12, 14, 16]
143+
runs-on: ubuntu-latest
144+
145+
steps:
146+
- uses: actions/checkout@v3
147+
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
198+
199+
# expect
200+
# - no errors
201+
# - log
202+
# ##[debug]Cache Paths:
203+
# ##[debug]["sub2/.yarn/cache","sub3/.yarn/cache","../../../.cache/yarn/v6"]
204+
- name: Setup Node
205+
uses: ./
206+
with:
207+
node-version: ${{ matrix.node-version }}
208+
cache: 'yarn'
209+
cache-dependency-path: |
210+
**/*.lock
211+
yarn.lock

.github/workflows/yarn-subprojects.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy