Unable to pass test in Lab 4 – Cache, Docker, Containers and Services

Hi team,

I’m facing difficulty in passing a test case in this lab in step 4/7.

I’ve followed the steps to cache the package-lock.json file using ${{ runner.os }}-node-${{hashFiles('**/package-lock.json')}} key but still failing the test, though the cache works fine.

I’ve also tried changing the key into ${{ runner.os }}-node-modules-${{hashFiles('**/package-lock.json')}} but still didn’t work.

If you could have a look into this, that would be great. Thank you in advance!

You can refer to the solution for that question in the lab.

Thanks al1 for your suggestion. I forgot to mention that I have also copy pasted the solution, however the test was failing too.