workflows: Move actions/checkout before actions/setup-go

By placing actions/checkout before actions/setup-go[1] we could avoid
the following warning message:

Warning: Restore cache failed: Dependencies file is not found in
/home/runner/work/go-ceph/go-ceph. Supported file pattern: go.sum

[1] https://github.com/actions/setup-go/issues/281

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
This commit is contained in:
Anoop C S 2023-09-06 13:41:20 +05:30 committed by mergify[bot]
parent 947f937cab
commit 291244b76d

View File

@ -41,10 +41,10 @@ jobs:
needs: go-versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ needs.go-versions.outputs.latest }}
- uses: actions/checkout@v3
- name: Install revive
run: go install github.com/mgechev/revive@latest
- name: Run checks