Github Actions provides us an easier way to setup CI/CD for the application. We can build any application on Github events and deploy to the servers. The default all commands are executed at root directory of the application. In some cases, you need to execute any command for the sub directories. It’s possible by setting the working-directory directive in the configuration file. Running Command in Subdirectory with Github Actions For example, your application have composer.json file under the “app” directory. In that case, use the following configuration to run composer install under app directory.
- name: Install composer dependencies
composer install --no-scripts
In the above configuration the…