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

Pin dependencies in ci.yml #367

Merged
merged 2 commits into from
Mar 11, 2024
Merged

Pin dependencies in ci.yml #367

merged 2 commits into from
Mar 11, 2024

Conversation

fxamacker
Copy link
Member

Changes

  • Pin dependencies:
    • actions/setup-go
    • actions/checkout
  • Bump go versions to go-1.19 and go-1.20.

  • Targeted PR against main branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

Pin dependencies:
- actions/setup-go
- actions/checkout

Bump go versions tested to go-1.19 and go-1.20.
@fxamacker fxamacker added the CI CI and GitHub Actions Workflows label Feb 18, 2024
@fxamacker fxamacker self-assigned this Feb 18, 2024
@codecov-commenter
Copy link

codecov-commenter commented Feb 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1e6ec55) 64.93% compared to head (9cd2483) 64.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #367      +/-   ##
==========================================
+ Coverage   64.93%   64.95%   +0.02%     
==========================================
  Files          14       14              
  Lines        8811     8811              
==========================================
+ Hits         5721     5723       +2     
+ Misses       2356     2354       -2     
  Partials      734      734              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Fix Go version 1.20 being interpreted as 1.2 by using quotes.
@@ -31,17 +31,17 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
go-version: [1.17, 1.18, 1.19]
go-version: [1.19, '1.20']
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, using string format instead of value.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, the quotes around 1.20 prevents .yml parser interpreting 1.20 as 1.2 which can cause weird errors!

I ran into this in another repo and it took time to debug because I didn't notice go1.20 -> go1.2 right away.

@fxamacker fxamacker merged commit e61834e into main Mar 11, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI CI and GitHub Actions Workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants