-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Examples are misleading - Need update #131
Comments
It is assuming that you have a key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} |
@drupol To give more clarity on this, the cache steps have to be before the Let me know if you have any questions. |
Hi, Most of the libraries are not shipping Slim: https://github.com/slimphp/Slim So, the examples files are wrong because they would not work as they are for those projects. I will do the changes you advised me and use |
Yes, currently all the examples are written for skeleton apps of frameworks, not libraries or frameworks themselves. When you are using a framework like Will make this more clear in the examples and documentation in the next release. |
Thanks mate! |
Updated examples and documentation in #133 |
It's perfect 🤗 |
Hello,
I'm using your Github actions in my repositories.
I followed the examples files to enable the dependencies cache to speed up my builds and it failed.
Let's take this example: https://github.com/shivammathur/setup-php/blob/master/examples/slim-framework.yml
We can see that it's trying to get the hash of the file
composer.lock
which is only there AFTER doingcomposer install
.I would update the examples accordingly and add the
composer install
step before theCache composer dependencies
step. For all the examples.In case of an already existing
composer.lock
in the repository, it doesn't change a thing.The text was updated successfully, but these errors were encountered: