Skip to content

What paths should we cache in CI? #18752

Answered by Jarred-Sumner
PaulRBerg asked this question in Q&A
Discussion options

You must be logged in to vote

Is that correct and what you as maintainers of Bun would recommend, too?

Yes but probably **/bun.lock nowadays that we default to bun.lock.

- uses: actions/cache@v4
  with:
    path: |
      ~/.bun/install/cache
    key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}

If yes, why does node_modules not have to be cached?

Generally, bun install is faster than the github actions cache.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@PaulRBerg
Comment options

@RiskyMH
Comment options

Answer selected by PaulRBerg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants