chore: Refactor test workflow by stevehipwell · Pull Request #3929 · google/go-github

This PR refactors the test workflow to use the native setup go caching as we use in the linting workflow. It also moves checkout before setup go, which is idiomatic and also matches the linting workflow.

These changes should stop the cache warning annotations that testing has been generating, although this could also be achieved by disabling caching for the setup go action.