diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 14a976a..d5fdf86 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,7 +3,7 @@ on: push: jobs: - cache_checkout: + setup: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -18,18 +18,33 @@ jobs: cache: 'pnpm' - name: Install dependencies run: pnpm install + - name: Cache workspace + uses: actions/cache@v3 + with: + path: . + key: ${{ runner.os }}-workspace-${{ github.sha }} + build: + needs: setup runs-on: ubuntu-latest - needs: cache_checkout steps: + - name: Restore workspace + uses: actions/cache@v3 + with: + path: . + key: ${{ runner.os }}-workspace-${{ github.sha }} - name: Build run: pnpm build - test: + needs: setup runs-on: ubuntu-latest - needs: cache_checkout steps: + - name: Restore workspace + uses: actions/cache@v3 + with: + path: . + key: ${{ runner.os }}-workspace-${{ github.sha }} - name: Lint run: pnpm lint - name: Test