cisagov / skeleton-generic

A generic skeleton project for quickly getting a new cisagov project started.
Creative Commons Zero v1.0 Universal
14 stars 11 forks source link

Update the configuration for `setup-go` in our GitHub Actions workflow #137

Closed mcdonnnj closed 1 year ago

mcdonnnj commented 1 year ago

๐Ÿ—ฃ Description

This pull request disabled caching and bumps the version of Go used from 1.19 to 1.20.

๐Ÿ’ญ Motivation and context

We get a warning in our Action run summaries because the built-in caching for actions/setup-go relies on the existence of a go.sum file. Since most projects using our pre-commit configuration are not Go projects, and since the Go cache is included in our manual caching step, we can safely disable the the built-in caching. We bump Go versions since 1.20 is the latest stable release.

๐Ÿงช Testing

The modified steps function without issue but this PR needs #136 to pass tests.

โœ… Pre-approval checklist