Skip to content

build: added GitHub Actions for push and pull_request events#507

Merged
Aerex merged 3 commits into
devfrom
build/ci
Jun 16, 2026
Merged

build: added GitHub Actions for push and pull_request events#507
Aerex merged 3 commits into
devfrom
build/ci

Conversation

@Aerex

@Aerex Aerex commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Context

This PR will add GitHub actions that will build and run the unit tests on every push and pull request

Comment thread .github/workflows/ci.yaml Outdated
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.26.4'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Callout: I am using the exact version in the go.mod to ensure that the build matches what is currently being used.

When we update the go version in the sdk we will need to update this value accordingly

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.

It would be nice if we could pick this up in an automated fashion. It's not the end of the world, we used to have to do this manual update with travis too, but worth considering.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It looks like there is an option for that for setup-go GitHub Action. I have made the change

Comment thread bluemix/http/transport.go
dumpedRequest, err := httputil.DumpRequest(req, shouldDisplayBody)
if err != nil {
trace.Logger.Printf(T("An error occurred while dumping request:\n{{.Error}}\n", map[string]interface{}{"Error": err.Error()}))
trace.Logger.Print(T("An error occurred while dumping request:\n{{.Error}}\n", map[string]interface{}{"Error": err.Error()}))

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 wondering why this was necessary?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is to avoid the vet errors when running the unit tests

@Aerex Aerex merged commit 9d0b2a2 into dev Jun 16, 2026
2 checks passed
@Aerex Aerex deleted the build/ci branch June 16, 2026 19:07
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