Skip to content

build: add workflow to deploy on production and setup git-hooks#33

Merged
gvieira18 merged 7 commits intodevelopfrom
build/release-prod
Oct 10, 2024
Merged

build: add workflow to deploy on production and setup git-hooks#33
gvieira18 merged 7 commits intodevelopfrom
build/release-prod

Conversation

@gvieira18
Copy link
Copy Markdown
Member

This pull request introduces significant updates to the CI/CD pipeline, adds a new release workflow, and makes several configuration changes to enhance the development process. The key changes involve improving the CI workflow, introducing automated production release steps, and refining configuration files for better code quality and deployment practices.

CI/CD Pipeline Enhancements:

  • CI Workflow Updates: Enhanced the CI pipeline by adding new jobs for code formatting (Pint format) and linting (PHP_CodeSniffer Lint). These additions aim to ensure code quality and consistency throughout the development lifecycle.
  • Deployment on Laravel Forge: Improved the deployment process by updating the deployment trigger to use a new token (FORGE_DEPLOY_TOKEN) and refining the deployment URL for more secure and efficient releases.

New Release Workflow:

  • Release to Production: Introduced a new release-prod workflow that streamlines production releases, including steps for validating inputs, updating the main branch, creating a release, and deploying to production.

Configuration Updates:

  • NPM Configuration: Updated .npmrc to enforce exact version installations and disable caching of side effects to maintain consistent dependency management.
  • Composer Configuration: Enhanced composer.json by adding squizlabs/php_codesniffer and incorporating post-install and post-update commands to manage assets and dependencies efficiently.
  • Lefthook Configuration: Added configuration for pre-commit and pre-push hooks to automate tasks like formatting, linting, security auditing, and testing.
  • Package Dependencies: Included lefthook in the devDependencies section of package.json to integrate it seamlessly into the development workflow.

- Update the CI workflow file to include a new step for linting PHP files using PHP_CodeSniffer with the PSR12 standard.
- Add a new linting step in the lefthook configuration file to run PHP_CodeSniffer on staged PHP files.
@gvieira18 gvieira18 self-assigned this Oct 10, 2024
@gvieira18 gvieira18 merged commit 72530d9 into develop Oct 10, 2024
@gvieira18 gvieira18 deleted the build/release-prod branch October 10, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant