diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml index f8f394b..dbf9d70 100644 --- a/.github/workflows/test-ci.yml +++ b/.github/workflows/test-ci.yml @@ -34,11 +34,32 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v3 + - uses: actions/setup-node@v3 with: node-version: 20 cache: "pnpm" + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v4 + 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: Cache turbo build setup + uses: actions/cache@v4 + with: + path: .turbo + key: ${{ runner.os }}-turbo-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-turbo- + - run: pnpm install - name: Build apps