Skip to content
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

Enhance CI with Build, Format Check, and Test Workflows for Go #2

Merged
merged 1 commit into from
May 1, 2024

Conversation

Iajrdev
Copy link
Collaborator

@Iajrdev Iajrdev commented May 1, 2024

This pull request introduces a comprehensive update to our CI pipeline specifically designed for our Go project. The proposed GitHub Actions configuration aims to enforce code quality and ensure that every push and pull request to the main branch undergoes a rigorous automated testing regime.

Key Components of the Workflow:

Build Job:
Purpose: Compiles the code to detect any compilation errors early in the development cycle.
Environment: Runs on the latest Ubuntu environment.
Details: Uses Go 1.22.2 and executes a verbose build for all components.

Format Check Job:
Purpose: Ensures that all Go files adhere to the standard formatting guidelines.
Dependency: Depends on the successful completion of the Build job.
Details: Utilizes Go 1.22.2 to check formatting and will fail the CI if any files are not properly formatted, providing a list of offending files.

Test Job:
Purpose: Executes all unit tests in the repository to maintain high code quality and reliability.
Dependency: Runs after the Format Check job to ensure only well-formatted code is tested.
Details: Sets up the Go environment and runs verbose testing.

@pouriya pouriya merged commit 635a0f0 into PwPJ:main May 1, 2024
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.

None yet

2 participants