build(infra): checkout repo before setting up Go (#2903)

This way GH caching for Go packages has a chance to work.
See https://github.com/actions/setup-go#caching-dependency-files-and-build-outputs

* build(providers): checkout repo before setting up Go
* build(infra): checkout repo before setting up Go: apply to other workflows as well.
This commit is contained in:
Julio Lopez authored and GitHub committed 2023-04-07 17:22:05 -04:00
1 parent 9fc39b95c0
commit 8706239a9f
10 files changed
+50 -50

No files matched your search

+5 -5
View File
@@ -11,15 +11,15 @@ jobs:
name: Code Coverage Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go.
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Tests
run: make test-with-coverage
- name: Upload Coverage