diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index d758a4031..3a36c4410 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -34,29 +34,6 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Cache node_modules - id: cache-node_modules - uses: actions/cache@v4 - with: - path: node_modules - key: node_modules-${{ hashFiles('package.json', 'package-lock.json') }} - - - name: Cache ~/.elm - # see https://docs.microsoft.com/en-us/answers/questions/510640/deploy-elm-app-to-azure-static-website-from-github.html - uses: actions/cache@v4 - with: - path: ~/.elm - key: elm-cache-${{ hashFiles('elm.json') }} - restore-keys: elm-cache- - - - name: Cache pipenv virtualenv - uses: actions/cache@v4 - with: - path: ~/.local/share/virtualenvs - key: ${{ runner.os }}-${{ matrix.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }} - restore-keys: | - ${{ runner.os }}-pipenv- - - name: Install Node dependencies run: npm ci --prefer-offline --no-audit @@ -102,3 +79,26 @@ jobs: - name: Run server tests run: pipenv run backend/update.sh && npm run test:server-ci && npm run test:backend + + - name: Cache node_modules + id: cache-node_modules + uses: actions/cache@v4 + with: + path: node_modules + key: node_modules-${{ hashFiles('package.json', 'package-lock.json') }} + + - name: Cache ~/.elm + # see https://docs.microsoft.com/en-us/answers/questions/510640/deploy-elm-app-to-azure-static-website-from-github.html + uses: actions/cache@v4 + with: + path: ~/.elm + key: elm-cache-${{ hashFiles('elm.json') }} + restore-keys: elm-cache- + + - name: Cache pipenv virtualenv + uses: actions/cache@v4 + with: + path: ~/.local/share/virtualenvs + key: ${{ runner.os }}-${{ matrix.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }} + restore-keys: | + ${{ runner.os }}-pipenv-