diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0f098bdaff..54e3d41d51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ on: push: pull_request: branches: - - '**' + - "**" workflow_dispatch: jobs: @@ -46,7 +46,16 @@ jobs: restore-keys: | ${{ env.cache-version }}-${{ runner.os }}--electron-builder-cache- + - name: Cache node_modules + uses: actions/cache@v3 + id: cache-node-modules + with: + path: node_modules + key: ${{ env.cache-version }}-${{ runner.os }}--node-modules-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ env.cache-version }}-${{ runner.os }}--node-modules- - run: npm ci + if: steps.cache-node-modules.outputs.cache-hit != 'true' - run: npm run typecheck - run: npm run lint - run: npm run markdownlint