Skip to content

Commit

Permalink
Add: node_modulesをキャッシュするように (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi authored Jan 8, 2023
1 parent 9869e23 commit ef15229
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
pull_request:
branches:
- '**'
- "**"
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ef15229

Please sign in to comment.