Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: node_modulesをキャッシュするように #1064

Merged
merged 5 commits into from
Jan 8, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 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,19 @@ 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: cp package-lock.json package-lock.json.bak
Hiroshiba marked this conversation as resolved.
Show resolved Hide resolved
- run: npm i
if: steps.cache-node-modules.outputs.cache-hit != 'true'
- run: npm ci
if: hashFiles('package-lock.json') != hashFiles('package-lock.json.bak')
y-chan marked this conversation as resolved.
Show resolved Hide resolved
- run: npm run typecheck
- run: npm run lint
- run: npm run markdownlint
Expand Down