Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add CI/CD Workflows for Linting, Testing, Building, Static Analysis, and Dependency Checking
Description:
Fixes #11
DUE TO EXISTING FMT ISSUE, FORMATTED ALL THE FILES WHICH IS RESULTING IN SO MANY CHANGES. BUT ALL OF THEM ARE JUST FORMATTING CHANGES ONLY
This PR introduces several workflows to automate the CI/CD process for the Go backend repository. These workflows ensure that every pull request (PR) is properly tested, linted, built, analyzed, and checked for dependency issues before merging into the main branches.
The workflows added/mofied include:
Workflow Details:
Linting Workflow (
.github/workflows/lint.yml
)golangci-lint
on every PR.master
branches.golangci-lint
to check for code style issues, unused variables, and other linting problems.Testing Workflow (
.github/workflows/tests.yml
)master
branches.go test ./...
for unit tests.Build Workflow (
.github/workflows/build.yml
)master
branches.go build ./...
to compile the Go project.Static Analysis Workflow (
.github/workflows/static-analysis.yml
)staticcheck
to catch bugs, inefficiencies, and code quality issues before runtime.master
branches.staticcheck
to perform deep code analysis and detect common issues in Go code.Dependency Check Workflow (
.github/workflows/dependency-check.yml
)master
branches.go get -u -v
to check for updates to dependencies.go mod tidy
to clean up thego.mod
file.go.mod
file remains clean and accurate.