Skip to content

ci: migrate from Travis CI to GitHub Actions#5

Merged
DeepDiver1975 merged 4 commits into
mainfrom
feat/migrate-ci-to-github-actions
May 12, 2026
Merged

ci: migrate from Travis CI to GitHub Actions#5
DeepDiver1975 merged 4 commits into
mainfrom
feat/migrate-ci-to-github-actions

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Member

Summary

  • Remove .travis.yml
  • Add .github/workflows/ci.yml with equivalent steps:
    • go get -d -v . (install dependencies)
    • go build -v ./ (build)
  • Uses actions/checkout@v4 and actions/setup-go@v5 with go-version-file: go.mod
  • Triggers on pushes and pull requests to all branches

Test plan

  • Verify the CI workflow appears in the Actions tab after merging
  • Confirm the build step passes on a subsequent push

🤖 Generated with Claude Code

DeepDiver1975 and others added 3 commits May 12, 2026 00:23
Replace .travis.yml with .github/workflows/ci.yml, preserving the
same install and build steps (go get -d -v . and go build -v ./).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
Pin actions/checkout and actions/setup-go to their full commit SHAs
for supply-chain security, keeping the version tag as a comment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
Only run on pushes to master and on pull_request events
(opened, synchronize, reopened).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
Comment thread .github/workflows/ci.yml
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just so that we don't get immediately a dependabot PR after merging this.

Suggested change
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

Comment thread .github/workflows/ci.yml
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just so that we don't get immediately a dependabot PR after merging this.

Suggested change
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I want to update them after merging of #4 to see if it works ;-)

Comment thread .github/workflows/ci.yml Outdated
with:
go-version-file: go.mod

- name: Install dependencies

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't think this step is needed.

  1. the build step after this fetches dependencies on its own
  2. the -d flag should be deprecated
  3. if this is about having a separate log for deps install, why not use go mod download?

@DeepDiver1975 DeepDiver1975 merged commit 1be15d3 into main May 12, 2026
1 check passed
@DeepDiver1975 DeepDiver1975 deleted the feat/migrate-ci-to-github-actions branch May 12, 2026 07:36
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