Skip to content

Commit d206a8b

Browse files
committed
Moved tests to pnpm
1 parent ce59237 commit d206a8b

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/1maxPadPerInstance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
run: node app.js > proxyLog.txt &
9393

9494
- name: Install etherpad-load-test
95-
run: npm install etherpad-load-test -g
95+
run: pnpm install etherpad-load-test -g
9696

9797
- name: wait for Etherpad
9898
run: curl --connect-timeout 10 --max-time 20 --retry 5 --retry-delay 10 --retry-max-time 60 --retry-connrefused http://127.0.0.1:9003/p/test

.github/workflows/3maxPadPerInstance.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
${{ runner.os }}-pnpm-store-
3737
3838
- name: install dependencies
39-
run: npm i
39+
run: pnpm i
4040

4141
# install and run etherpad on ports 9001, 9002 and 9003
4242
- name: Git clone etherpad to test1
@@ -46,7 +46,7 @@ jobs:
4646
path: test1
4747

4848
- name: prep etherpad >> test1
49-
run: cd test1/src && npm i --no-optional
49+
run: cd test1/src && pnpm i
5050

5151
- name: start etherpad >> test1
5252
run: cd test1 && node src/node/server.js &
@@ -62,7 +62,7 @@ jobs:
6262
run: sed 's/9001/9002/g' test2/settings.json.template > test2/settings.json
6363

6464
- name: prep etherpad >> test2
65-
run: cd test2/src && npm i --no-optional
65+
run: cd test2/src && pnpm i
6666

6767
- name: start etherpad >> test2
6868
run: cd test2 && node src/node/server.js &
@@ -78,19 +78,19 @@ jobs:
7878
run: sed 's/9001/9003/g' test2/settings.json.template > test3/settings.json
7979

8080
- name: prep etherpad >> test3
81-
run: cd test3/src && npm i --no-optional
81+
run: cd test3/src && pnpm i
8282

8383
- name: start etherpad >> test3
84-
run: cd test3 && node src/node/server.js &
84+
run: cd test3 && pnpm run prod &
8585

8686
- name: support 3 pads per instances
8787
run: sed 's/5/3/g' settings.json.template > settings.json
8888

8989
- name: Start proxy
90-
run: node app.js &
90+
run: pnpm run start &
9191

9292
- name: Install etherpad-load-test
93-
run: npm install etherpad-load-test -g
93+
run: pnpm install etherpad-load-test -g
9494

9595
- name: wait for Etherpad
9696
run: curl --connect-timeout 10 --max-time 20 --retry 5 --retry-delay 10 --retry-max-time 60 --retry-connrefused http://127.0.0.1:9003/p/test

.github/workflows/npmpublish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
restore-keys: |
3535
${{ runner.os }}-pnpm-store-
3636
-
37-
run: pnpm ci
37+
run: pnpm i
3838
-
3939
run: pnpm test
4040
-
@@ -74,13 +74,13 @@ jobs:
7474
[ "${NEW_COMMITS}" -gt 0 ] || exit 0
7575
git config user.name 'github-actions[bot]'
7676
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
77-
pnpm ci
77+
pnpm i
7878
pnpm version patch
7979
git push --follow-tags
8080
# This is required if the package has a prepare script that uses something
8181
# in dependencies or devDependencies.
8282
-
83-
run: pnpm ci
83+
run: pnpm i
8484
# `npm publish` must come after `git push` otherwise there is a race
8585
# condition: If two PRs are merged back-to-back then master/main will be
8686
# updated with the commits from the second PR before the first PR's

0 commit comments

Comments
 (0)