Merge pull request #5033 from cli/go-ci-cache

Cache Go modules between CI runs
This commit is contained in:
Mislav Marohnić 2022-01-13 19:46:16 +01:00 committed by GitHub
commit fbda658767
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,15 @@ jobs:
- name: Check out code
uses: actions/checkout@v2
- name: Cache Go modules
uses: actions/cache@v2
with:
path: ~/go
key: ${{ runner.os }}-build-${{ hashFiles('go.mod') }}
restore-keys: |
${{ runner.os }}-build-
${{ runner.os }}-
- name: Download dependencies
run: go mod download