diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 687021dc..3730b9b9 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -39,11 +39,20 @@ jobs: - name: Install dependencies ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป run: pnpm install --no-frozen-lockfile + - name: Turbo Cache + id: turbo-cache + uses: actions/cache@v2 + with: + path: .turbo + key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }} + restore-keys: | + turbo-${{ github.job }}-${{ github.ref_name }}- + - name: Run linter ๐Ÿงน - run: pnpm lint + run: pnpm run lint --cache-dir=.turbo - name: Build Library ๐Ÿ‘ท - run: pnpm build + run: pnpm run build --cache-dir=.turbo - name: Run tests ๐Ÿงช - run: pnpm test + run: pnpm run test --cache-dir=.turbo