-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Establish a GitHub Actions workflow to automatically run unit tests and verify code quality on every push and pull request. This ensures that the minimum Go version (1.23) is respected and that new changes do not break existing logic in the cache, protocol, and cli packages.
Tasks
- Create makefile with test
- Create workflow.
- Configure the workflow to trigger on
pushtomasterand allpull_requestevents. - Define a job matrix for Go versions 1.23, 1.24, and 1.25.
- Implement steps for:
- Checking out the repository.
- Setting up the Go environment.
- Running
go mod download. - Running all tests using
go test -v ./.... - Verifying code formatting with
gofmt.
Acceptance Criteria
- The CI pipeline successfully runs on a new Pull Request.
- The build fails if any unit test in
internal/cacheor other packages fails. - The build fails if the Go version is lower than 1.23.
- Workflow execution time is optimized by using Go build caching.
Reactions are currently unavailable