diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index e447b9c90e..9ea98b0d88 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -17,6 +17,22 @@ jobs: with: fetch-depth: 1 + - name: Cache npm dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-npm- + + - name: Cache pip dependencies + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install git run: | sudo apt-get update -q diff --git a/.github/workflows/test-client.yml b/.github/workflows/test-client.yml index 7b9810b686..85e46fdbe9 100644 --- a/.github/workflows/test-client.yml +++ b/.github/workflows/test-client.yml @@ -17,6 +17,22 @@ jobs: with: fetch-depth: 1 + - name: Cache npm dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-npm- + + - name: Cache pip dependencies + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install git run: | sudo apt-get update -q