Skip to content

fix: update Go version to 1.26.2 and fix format string in fmt.Errorf#111

Open
hectorespert wants to merge 3 commits into
reef-pi:mainfrom
hectorespert:fix_test
Open

fix: update Go version to 1.26.2 and fix format string in fmt.Errorf#111
hectorespert wants to merge 3 commits into
reef-pi:mainfrom
hectorespert:fix_test

Conversation

@hectorespert

@hectorespert hectorespert commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR fixes the GitHub Actions workflow failure and aligns coverage reporting with the reef-pi root project.

Changes

  • Updated go.mod to specify Go 1.26.2 (was 1.23.2)
  • Updated GitHub Actions workflow to use Go 1.26.2 (was ^1.16.1)
  • Fixed non-constant format string error in ads1x15/factory.go to comply with Go 1.26.2's stricter fmt.Errorf requirements
  • Reordered workflow steps to run in optimal order
  • Replaced codecov with Coveralls coverage reporting to align with reef-pi root project
    • Removed codecov/codecov-action@v1
    • Updated test command to generate coverage.txt: go test -coverprofile=coverage.txt ./...
    • Added Coveralls upload action: coverallsapp/github-action@v2

Testing

  • All tests pass locally: go test ./...
  • Build succeeds: go build ./...
  • Coverage file properly generated during tests
  • Workflow steps in optimal order:
    1. Checkout
    2. Setup Go 1.26.2
    3. Install dependencies
    4. Run tests with coverage tracking
    5. Upload coverage to Coveralls
    6. Build

Related Issue

Fixes GitHub Actions workflow failure in run #29149364650

Alignment with reef-pi

Coverage reporting now matches the root reef-pi project method using Coveralls instead of codecov.

hectorespert and others added 3 commits July 11, 2026 12:40
- Update go.mod to Go 1.26.2
- Update workflow to use Go 1.26.2
- Fix non-constant format string error in ads1x15/factory.go
- Go 1.26.2 enforces constant format strings for fmt.Errorf
- All tests passing locally

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Remove codecov/codecov-action@v1 (deprecated)
- Update go test to generate coverage.txt: go test -coverprofile=coverage.txt ./...
- Add Coveralls upload action (coverallsapp/github-action@v2)
- Align with reef-pi root project coverage reporting method
- All tests passing with coverage tracking

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hectorespert

Copy link
Copy Markdown
Contributor Author

@ranjib It fixes workflows for #110

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