-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description:
Opening a pull request and pushing changes to it does not cache dependencies, even if the lock file hasn't been affected at all.
Action version:
v3.0.0
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
Repro steps:
Using a Github CI workflow that looks like this:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Node environment
uses: actions/[email protected]
with:
cache: yarn
node-version-file: .nvmrc
- name: Install dependencies
run: yarn install --frozen-lockfile
Produces this log file for setup-node action:
Run actions/[email protected]
with:
cache: yarn
node-version-file: .nvmrc
always-auth: false
check-latest: false
token: ***
Resolved .nvmrc as 16.14.[2](https://github.com/foo/runs/5759850063?check_suite_focus=true#step:3:2)
Found in cache @ /opt/hostedtoolcache/node/16.1[4](https://github.com/foo/runs/5759850063?check_suite_focus=true#step:3:4).2/x[6](https://github.com/foo/runs/5759850063?check_suite_focus=true#step:3:6)4
/usr/local/bin/yarn --version
1.22.1[8](https://github.com/foo/runs/5759850063?check_suite_focus=true#step:3:8)
/usr/local/bin/yarn cache dir
/home/runner/.cache/yarn/v6
yarn cache is not found
Expected behavior:
Pushing to the same pull request should trigger a new run that uses dependencies from the previous run, regardless of its completion status.
Actual behavior:
Every commit causes yarn install
to take multiple minutes due to missing cache
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working