diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07ba67c..a6c8fe4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,10 +17,25 @@ jobs: node-version: '22' - name: Install dependencies run: npm ci + - name: Cache repository + uses: actions/cache@v4 + with: + path: . + key: ${{ runner.os }}-repo-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-repo-${{ hashFiles('**/package-lock.json') }} + build: runs-on: ubuntu-latest needs: setup steps: + - uses: actions/checkout@v4 + - name: Restore repository cache + uses: actions/cache@v4 + with: + path: . + key: ${{ runner.os }}-repo-${{ hashFiles('**/package-lock.json') }} + fail-on-cache-miss: true - name: Compile run: npm run compile @@ -28,6 +43,12 @@ jobs: runs-on: ubuntu-latest needs: setup steps: + - name: Restore repository cache + uses: actions/cache@v4 + with: + path: . + key: ${{ runner.os }}-repo-${{ hashFiles('**/package-lock.json') }} + fail-on-cache-miss: true - name: Install system dependencies run: | sudo apt-get update