Skip to content

Migrate CI to GitHub Actions and update to Go 1.23#89

Open
gundalow wants to merge 4 commits intofluffle:masterfrom
gundalow:migrate-to-gha-go1.23-6709935838327540399
Open

Migrate CI to GitHub Actions and update to Go 1.23#89
gundalow wants to merge 4 commits intofluffle:masterfrom
gundalow:migrate-to-gha-go1.23-6709935838327540399

Conversation

@gundalow
Copy link
Collaborator

@gundalow gundalow commented Mar 1, 2026

This PR migrates the project's CI pipeline from Travis CI to GitHub Actions and upgrades the Go version to 1.23.

Key changes:

  • Deleted .travis.yml.
  • Created .github/workflows/ci.yml which runs on push and pull requests to master. It performs a gofmt check and runs unit tests with the race detector.
  • Updated go.mod to specify go 1.23.
  • Updated the Dockerfile to use golang:1.23 for the build environment.
  • Formatted several files using gofmt to satisfy the new CI check.

⚠️ Untested as I can't get mongodb setup


This change is Reviewable

@gundalow gundalow mentioned this pull request Mar 1, 2026
Copy link
Owner

@fluffle fluffle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good.

Please can you take the time to squash and rebase this into a few logical commits. Ideally I'd like to see:

  1. removing .travis.yml, adding GHA, updating Dockerfile and go.mod
  2. interface{} -> any changes
  3. range loop changes
  4. everything else, i.e. ioutil deprecation, rand -> rand/v2, the comment formatting changes, etc

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest Go is 1.26 now :-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, though my OS only has packages for go1.25.7, and I'd like to avoid having to manually build/upgrade go.

@gundalow gundalow force-pushed the migrate-to-gha-go1.23-6709935838327540399 branch from 6a9e58c to c68d5c5 Compare March 2, 2026 10:54
@gundalow
Copy link
Collaborator Author

gundalow commented Mar 2, 2026

Good idea on logical commits.
Done: https://github.com/fluffle/sp0rkle/pull/89/commits

@gundalow gundalow requested a review from fluffle March 2, 2026 10:57
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.

2 participants