Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor GitHub workflows #156

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

szkiba
Copy link
Contributor

@szkiba szkiba commented Mar 19, 2025

New validate and release workflows, whose functionality has been extracted into the tooling-validate and tooling-release reusable workflows.

The new workflows must be configured via mandatory repository variables:

  • GO_VERSION The go version to use for the build.
  • GO_VERSIONS The go versions to use for running the tests. JSON string array (e.g. ["1.24.x", "1.23.x"])
  • PLATFORMS Platforms to be used to run the tests. JSON string array (e.g. ["ubuntu-latest","macos-latest"])
  • K6_VERSIONS The k6 versions to be used for integration tests. JSON string array (e.g. ["v0.57.0","v0.56.0"])
  • GOLANGCI_LINT_VERSION The golangci-lint version to use for static analysis.
  • GORELEASER_VERSION The version of GoReleaser to use for builds and releases.

The new workflows use the following repository secrets:

  • DOCKER_USER Username to use for pushing Docker images to Docker Hub.
  • DOCKER_PASS Token to use for pushing Docker images to Docker Hub.
  • CODECOV_TOKEN Token to be used to upload test coverage data to Codecov.

@szkiba szkiba linked an issue Mar 19, 2025 that may be closed by this pull request
@szkiba szkiba marked this pull request as ready for review March 20, 2025 18:30
@szkiba szkiba requested a review from a team as a code owner March 20, 2025 18:30
@szkiba szkiba requested review from pablochacin and removed request for a team March 20, 2025 18:30
args: build --clean --snapshot --single-target
```

[Bats](https://github.com/bats-core/bats-core) (Bash Automated Testing System) scripts can be specified as integration tests. These will be executed in jobs running on `Linux` operating systems (with all go versions specified in the input). If any integration test script fails, the workflow will stop with an error.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this have a bullet point also?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, it is just continuation of prev point

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.

Refactor GitHub workflows
2 participants