@@ -19,22 +19,37 @@ jobs:
1919 uses : actions/setup-node@v4
2020 with :
2121 node-version : ' 20.x'
22- cache : ' yarn'
23- cache-dependency-path : ' libpg-query/yarn.lock'
22+
23+ - name : Setup pnpm 📦
24+ uses : pnpm/action-setup@v2
25+ with :
26+ version : 8.15.0
27+
28+ - name : Get pnpm store directory 📁
29+ shell : bash
30+ run : |
31+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
32+
33+ - name : Setup pnpm cache 🗄️
34+ uses : actions/cache@v3
35+ with :
36+ path : ${{ env.STORE_PATH }}
37+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
38+ restore-keys : |
39+ ${{ runner.os }}-pnpm-store-
2440
2541 - name : Install Dependencies 🧶
26- run : yarn install
27- working-directory : libpg-query
42+ run : pnpm install
2843
2944 - name : Build WASM 🏗
30- run : npm run wasm: build
31- working-directory : libpg -query
45+ run : pnpm run build
46+ working-directory : libpq -query
3247
3348 - name : Upload WASM Artifacts 📦
3449 uses : actions/upload-artifact@v4
3550 with :
3651 name : wasm-artifacts
37- path : libpg -query/wasm/
52+ path : libpq -query/wasm/
3853 retention-days : 1
3954
4055 test :
@@ -53,19 +68,33 @@ jobs:
5368 uses : actions/setup-node@v4
5469 with :
5570 node-version : ' 20.x'
56- cache : ' yarn'
57- cache-dependency-path : ' libpg-query/yarn.lock'
71+
72+ - name : Setup pnpm 📦
73+ uses : pnpm/action-setup@v2
74+ with :
75+ version : 8.15.0
76+
77+ - name : Get pnpm store directory 📁
78+ shell : bash
79+ run : |
80+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
81+
82+ - name : Setup pnpm cache 🗄️
83+ uses : actions/cache@v3
84+ with :
85+ path : ${{ env.STORE_PATH }}
86+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
87+ restore-keys : |
88+ ${{ runner.os }}-pnpm-store-
5889
5990 - name : Install Dependencies 🧶
60- run : yarn install
61- working-directory : libpg-query
91+ run : pnpm install
6292
6393 - name : Download WASM Artifacts 📥
6494 uses : actions/download-artifact@v4
6595 with :
6696 name : wasm-artifacts
67- path : libpg -query/wasm/
97+ path : libpq -query/wasm/
6898
6999 - name : Run Tests 🔍
70- run : yarn test
71- working-directory : libpg-query
100+ run : pnpm run test
0 commit comments