diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8281bb..01e3636 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,14 @@ jobs: with: python-version: "3.11" + - name: Cache pip dependencies + uses: actions/cache@v4 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('backend/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install dependencies run: | cd backend @@ -46,8 +54,16 @@ jobs: with: node-version: "20" + - name: Cache node_modules + uses: actions/cache@v4 + with: + path: frontend/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('frontend/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install & build run: | cd frontend npm install - npm run build + npm run build \ No newline at end of file