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

Improve cache saving #1384

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

kagankan
Copy link
Sponsor Collaborator

What is the purpose of this PR?

  • Fix bug
  • Fix typo
  • Update specs
  • Add new rule
  • Add new parser
  • Improve or refactor rules
  • Add a new core feature
  • Improve or refactor core features
  • Update documents
  • Others

Description

GitHub Actions の実行時間を短くするための変更です。
ベースブランチ上でnode_modulesのキャッシュを保存するような設定を追加しました。

actions/cache にはスコープの概念があり、pull_requestで作成されたキャッシュは他のブランチのpull_requestからは参照できません。
そのため、新しく作成されたPull Requestではキャッシュが利用できない状況になっています。
devブランチ(デフォルトブランチ/ベースブランチ)でキャッシュを作成することで、新しく作成されたPull Requestでもキャッシュが利用できるようになります。

参考:
https://zenn.dev/mallowlabs/articles/github-actions-cache-scope

Checklist

Fill out the checks for the applicable purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant