Skip to content

Commit a917a8c

Browse files
committed
ci: use pnpm inside CI
1 parent 2820eaa commit a917a8c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/CI.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,10 @@ jobs:
6666
with:
6767
path: |
6868
./node_modules/
69-
~/.npm
70-
~/AppData/Roaming/npm-cache
71-
./build/zeromq-${{ matrix.zmq_version }}.tar.gz
72-
./zeromq-${{ matrix.zmq_version }}.tar.gz
73-
./libzmq
74-
./build/libzmq
69+
./build/
7570
key: "cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch }}-ZMQ_DRAFT:${{ matrix.zmq_draft }}-ZMQ_VERSION:${{ matrix.zmq_version }}-Node:${{ matrix.node_version }}-${{ hashFiles('./package.json') }}"
7671
restore-keys: |
77-
"cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch }}-ZMQ_DRAFT:${{ matrix.zmq_draft }}-ZMQ_VERSION:${{ matrix.zmq_version }}-Node:${{ matrix.node_version }}"
72+
"cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch }}-ZMQ_DRAFT:${{ matrix.zmq_draft }}-ZMQ_VERSION:${{ matrix.zmq_version }}-Node:${{ matrix.node_version }}-"
7873
7974
- name: Setup Cpp
8075
uses: aminya/setup-cpp@v1
@@ -84,24 +79,29 @@ jobs:
8479
ninja: true
8580
architecture: ${{ matrix.cpp_arch }}
8681

82+
- uses: pnpm/action-setup@v2.2.4
83+
with:
84+
version: 7
85+
8786
- name: Install Node
8887
uses: actions/setup-node@v3
8988
with:
9089
node-version: ${{ matrix.node_version }}
9190
architecture: ${{ matrix.node_arch }}
91+
cache: "pnpm"
9292

9393
- name: Install Mac-OS Dependencies
9494
if: contains(matrix.os, 'macos')
9595
run: |
9696
brew install libsodium gnutls
9797
9898
- name: Install Dependencies and Build
99-
run: npm install
99+
run: pnpm install
100100
env:
101101
ARCH: ${{ matrix.ARCH }}
102102

103103
- name: Prebuild
104-
run: npm run prebuild
104+
run: pnpm run prebuild
105105
env:
106106
ARCH: ${{ matrix.ARCH }}
107107

@@ -112,16 +112,16 @@ jobs:
112112

113113
- name: Lint
114114
if: contains(matrix.os, 'ubuntu')
115-
run: npm run lint-test
115+
run: pnpm run lint-test
116116

117117
- name: Test (Debug)
118118
uses: nick-fields/retry@v2
119119
with:
120120
timeout_minutes: 15
121121
max_attempts: 1
122122
command: |
123-
npm run test.skip_gc_tests
123+
pnpm run test.skip_gc_tests
124124
125125
- name: Tests + GC Tests (Release)
126126
run: |
127-
npm run test
127+
pnpm run test

0 commit comments

Comments
 (0)