diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b831a4..5136aad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,5 +41,16 @@ jobs: - uses: pnpm/action-setup@v2 with: version: latest + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - name: Build and test node run: deno task npm 0.0.0 \ No newline at end of file