Skip to content

ci: add Go 1.23/1.24 testing and fix example test names #760

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

Merged
merged 2 commits into from
Mar 2, 2025

Conversation

thevilledev
Copy link
Contributor

@thevilledev thevilledev commented Mar 1, 2025

Expand test coverage to newer Go versions and fix compatibility issues:

  • Add Go 1.23 and 1.24 to test matrix in test.yml
  • Add Go 1.24 to build matrix in build.yml
  • Fix example test names to match Go conventions:
    • ExampleOperator_Decimal → ExampleOperator_with_decimal
    • ExampleWithTimezone → ExampleTimezone
    • ExampleGetUnifiedDiffCode → ExampleGetUnifiedDiffString
    • ExampleGetContextDiffCode → ExampleGetContextDiffString
    • ExampleGetContextDiffString → ExampleGetContextDiffString_second

These changes maintain compatibility with Go 1.18 (as specified in go.mod) while ensuring the codebase works correctly with the latest Go versions, which enforce stricter naming conventions for example tests.

Needs #761 + rebase

Expand test coverage to newer Go versions and fix compatibility issues:

- Add Go 1.23 and 1.24 to test matrix in test.yml
- Add Go 1.24 to build matrix in build.yml
- Fix example test names to match Go conventions:
  * ExampleOperator_Decimal → ExampleOperator_with_decimal
  * ExampleWithTimezone → ExampleTimezone
  * ExampleGetUnifiedDiffCode → ExampleGetUnifiedDiffString
  * ExampleGetContextDiffCode → ExampleGetContextDiffString
  * ExampleGetContextDiffString → ExampleGetContextDiffString_second

These changes maintain compatibility with Go 1.18 (as specified in
go.mod) while ensuring the codebase works correctly with the latest
Go versions, which enforce stricter naming conventions for example
tests.

Signed-off-by: Ville Vesilehto <[email protected]>
@thevilledev thevilledev changed the title fix: correct example test names to match Go conventions ci: add Go 1.23/1.24 testing and fix example test names Mar 1, 2025
@antonmedv antonmedv merged commit 77e876b into expr-lang:master Mar 2, 2025
16 checks passed
SimFG pushed a commit to SimFG/expr that referenced this pull request Apr 15, 2025
Expand test coverage to newer Go versions and fix compatibility issues:

- Add Go 1.23 and 1.24 to test matrix in test.yml
- Add Go 1.24 to build matrix in build.yml
- Fix example test names to match Go conventions:
  * ExampleOperator_Decimal → ExampleOperator_with_decimal
  * ExampleWithTimezone → ExampleTimezone
  * ExampleGetUnifiedDiffCode → ExampleGetUnifiedDiffString
  * ExampleGetContextDiffCode → ExampleGetContextDiffString
  * ExampleGetContextDiffString → ExampleGetContextDiffString_second

These changes maintain compatibility with Go 1.18 (as specified in
go.mod) while ensuring the codebase works correctly with the latest
Go versions, which enforce stricter naming conventions for example
tests.

Signed-off-by: Ville Vesilehto <[email protected]>
Co-authored-by: Anton Medvedev <[email protected]>
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