DEV Community


Discussion on: Continuous Deployment on Shared Hosting with GitHub Actions

artalus profile image

How is that you first run: php -r "file_exists, but only then uses: shivammathur/setup-php@v2 ? 🤔
Does GHA come with "some abstract php" preinstalled, and then you override it with the specific version? Even if so, these two actions should probably be switched, install and then run.

madalitsonyemba profile image
Madalitso Nyemba Author

In fact, you are right in the observation. GHA used to come with php 7.4 as default that is why I changed to 8.0 but these should be switched indeed. In fact, now GHA comes with php 8.0 as default so removing the specific version would not hurt. Thanks for pointing it out.

Forem Open with the Forem app