STAC-25142 Port CI to GitHub Actions (lint + test)#2
Merged
Conversation
Migrate the .gitlab-ci.yml lint+test pipeline to GitHub Actions as part of the GitLab -> GitHub migration. Public Go library with no secrets/registry needs, so it runs on GitHub-hosted ubuntu-latest with actions/setup-go (Go from go.mod): - lint: gofmt check (fails on unformatted files) + revive (pinned v1.15.0) with the existing revive-recommended.toml - test: go test -v ./... SHA-pinned actions, minimal permissions, persist-credentials: false. Zizmor clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Ports the
.gitlab-ci.yml(lint + test) to GitHub Actions as part of the GitLab→GitHub migration. The GitLab mirror has been disabled, so GitHub is now canonical.gofmtcheck (fails on unformatted files) +revive(pinnedv1.15.0) using the existingrevive-recommended.tomlgo test -v ./...Why GitHub-hosted
ubuntu-latestThis is a public Go library with no secrets, no image push, and no internal-registry needs. The GitLab job pulled
golang:1.26through the internal proxy on a self-hosted runner; on GitHub that's justactions/setup-go(Go version read fromgo.mod), and public repos get free GitHub-hosted minutes — no self-hosted runner required.Notes
go.modis alreadygithub.com/StackVista/stackstate-receiver-go-client, so consumers already resolve via GitHub.permissions: contents: read,persist-credentials: false. Zizmor clean.reviverun viago run …@v1.15.0(pinned) instead ofgo install …@latest— reproducible and avoids PATH issues.Jira
STAC-25142